1 diff -dur Python-2.3.4.orig/Lib/distutils/command/install.py Python-2.3.4/Lib/distutils/command/install.py
2 --- Python-2.3.4.orig/Lib/distutils/command/install.py 2002-11-19 14:12:28.000000000 +0100
3 +++ Python-2.3.4/Lib/distutils/command/install.py 2004-09-10 08:41:12.836021548 +0200
8 - 'purelib': '$base/lib/python$py_version_short/site-packages',
9 + 'purelib': '$base/share/python$py_version_short/site-packages',
10 'platlib': '$platbase/lib/python$py_version_short/site-packages',
11 'headers': '$base/include/python$py_version_short/$dist_name',
12 'scripts': '$base/bin',
16 - 'purelib': '$base/lib/python',
17 + 'purelib': '$base/share/python',
18 'platlib': '$base/lib/python',
19 'headers': '$base/include/python/$dist_name',
20 'scripts': '$base/bin',
21 diff -dur Python-2.3.4.orig/Lib/distutils/sysconfig.py Python-2.3.4/Lib/distutils/sysconfig.py
22 --- Python-2.3.4.orig/Lib/distutils/sysconfig.py 2003-02-10 15:02:33.000000000 +0100
23 +++ Python-2.3.4/Lib/distutils/sysconfig.py 2004-09-10 08:44:08.196435115 +0200
25 prefix = plat_specific and EXEC_PREFIX or PREFIX
27 if os.name == "posix":
28 - libpython = os.path.join(prefix,
30 + libpython = os.path.join(prefix,
31 "lib", "python" + get_python_version())
33 + libpython = os.path.join(prefix,
34 + "share", "python" + get_python_version())
38 diff -dur Python-2.3.4.orig/Makefile.pre.in Python-2.3.4/Makefile.pre.in
39 --- Python-2.3.4.orig/Makefile.pre.in 2003-11-18 20:54:00.000000000 +0100
40 +++ Python-2.3.4/Makefile.pre.in 2004-09-10 08:41:12.838021439 +0200
43 INCLUDEDIR= @includedir@
44 CONFINCLUDEDIR= $(exec_prefix)/include
45 -SCRIPTDIR= $(prefix)/lib
46 +SCRIPTDIR= $(prefix)/share
48 # Detailed destination directories
49 BINLIBDEST= $(LIBDIR)/python$(VERSION)
50 diff -dur Python-2.3.4.orig/Modules/getpath.c Python-2.3.4/Modules/getpath.c
51 --- Python-2.3.4.orig/Modules/getpath.c 2002-12-31 13:45:12.000000000 +0100
52 +++ Python-2.3.4/Modules/getpath.c 2004-09-10 08:41:12.840021330 +0200
57 -#define PYTHONPATH PREFIX "/lib/python" VERSION ":" \
58 +#define PYTHONPATH PREFIX "/share/python" VERSION ":" \
59 EXEC_PREFIX "/lib/python" VERSION "/lib-dynload"
63 static char progpath[MAXPATHLEN+1];
64 static char *module_search_path = NULL;
65 static char lib_python[] = "lib/python" VERSION;
66 +static char share_python[] = "share/python" VERSION;
71 delim = strchr(prefix, DELIM);
74 - joinpath(prefix, lib_python);
75 + joinpath(prefix, share_python);
76 joinpath(prefix, LANDMARK);
80 copy_absolute(prefix, argv0_path);
83 - joinpath(prefix, lib_python);
84 + joinpath(prefix, share_python);
85 joinpath(prefix, LANDMARK);
90 /* Look at configure's PREFIX */
91 strncpy(prefix, PREFIX, MAXPATHLEN);
92 - joinpath(prefix, lib_python);
93 + joinpath(prefix, share_python);
94 joinpath(prefix, LANDMARK);
99 "Could not find platform independent libraries <prefix>\n");
100 strncpy(prefix, PREFIX, MAXPATHLEN);
101 - joinpath(prefix, lib_python);
102 + joinpath(prefix, share_python);
106 --- Python-2.4a3/Lib/site.py~ 2004-09-22 10:59:13.438619336 +0000
107 +++ Python-2.4a3/Lib/site.py 2004-09-22 11:01:46.976278064 +0000
110 "python" + sys.version[:3],
112 - os.path.join(prefix, "lib", "site-python")]
113 + os.path.join(prefix, "lib", "site-python"),
114 + os.path.join(prefix,
116 + "python" + sys.version[:3],
118 + os.path.join(prefix, "share", "site-python")]
121 sitedirs = [prefix, os.path.join(prefix, "lib", "site-packages")]
122 if sys.platform == 'darwin':