]>
Commit | Line | Data |
---|---|---|
e3852288 JB |
1 | --- Python-3.2/Modules/getpath.c.orig 2011-04-02 08:25:12.289739787 +0200 |
2 | +++ Python-3.2/Modules/getpath.c 2011-04-02 08:31:24.349729730 +0200 | |
3 | @@ -131,7 +131,8 @@ | |
e684db95 AM |
4 | |
5 | #ifndef PYTHONPATH | |
6 | #define PYTHONPATH PREFIX "/" LIB_PYTHON VERSION ":" \ | |
7 | - EXEC_PREFIX "/" LIB_PYTHON VERSION "/lib-dynload:" | |
8 | + EXEC_PREFIX "/" LIB_PYTHON VERSION "/lib-dynload:" \ | |
9 | + PREFIX "/share/python" VERSION | |
10 | #endif | |
11 | ||
12 | #ifndef LANDMARK | |
e3852288 | 13 | @@ -143,6 +144,7 @@ |
f215c9da AF |
14 | static wchar_t progpath[MAXPATHLEN+1]; |
15 | static wchar_t *module_search_path = NULL; | |
e3852288 | 16 | static wchar_t *lib_python = LIB_PYTHON VERSION; |
f215c9da | 17 | +static wchar_t share_python[] = L"share/python" VERSION; |
e684db95 | 18 | |
e3852288 JB |
19 | static void |
20 | reduce(wchar_t *dir) | |
21 | @@ -283,7 +285,7 @@ | |
f215c9da | 22 | delim = wcschr(prefix, DELIM); |
e684db95 | 23 | if (delim) |
f215c9da | 24 | *delim = L'\0'; |
e684db95 AM |
25 | - joinpath(prefix, lib_python); |
26 | + joinpath(prefix, share_python); | |
27 | joinpath(prefix, LANDMARK); | |
28 | return 1; | |
29 | } | |
e3852288 JB |
30 | @@ -309,7 +311,7 @@ |
31 | copy_absolute(prefix, argv0_path, MAXPATHLEN+1); | |
e684db95 | 32 | do { |
f215c9da | 33 | n = wcslen(prefix); |
e684db95 AM |
34 | - joinpath(prefix, lib_python); |
35 | + joinpath(prefix, share_python); | |
36 | joinpath(prefix, LANDMARK); | |
37 | if (ismodule(prefix)) | |
38 | return 1; | |
e3852288 | 39 | @@ -319,7 +321,7 @@ |
e684db95 AM |
40 | |
41 | /* Look at configure's PREFIX */ | |
e3852288 | 42 | wcsncpy(prefix, _prefix, MAXPATHLEN); |
e684db95 AM |
43 | - joinpath(prefix, lib_python); |
44 | + joinpath(prefix, share_python); | |
45 | joinpath(prefix, LANDMARK); | |
46 | if (ismodule(prefix)) | |
47 | return 1; | |
e3852288 | 48 | @@ -577,7 +579,7 @@ |
e684db95 AM |
49 | fprintf(stderr, |
50 | "Could not find platform independent libraries <prefix>\n"); | |
e3852288 | 51 | wcsncpy(prefix, _prefix, MAXPATHLEN); |
e684db95 AM |
52 | - joinpath(prefix, lib_python); |
53 | + joinpath(prefix, share_python); | |
54 | } | |
55 | else | |
56 | reduce(prefix); | |
e3852288 | 57 | @@ -590,7 +592,7 @@ |
e684db95 AM |
58 | } |
59 | else | |
e3852288 | 60 | wcsncpy(zip_path, _prefix, MAXPATHLEN); |
f215c9da | 61 | - joinpath(zip_path, L"lib/python00.zip"); |
e684db95 | 62 | + joinpath(zip_path, LIB_PYTHON "00.zip"); |
e3852288 | 63 | bufsz = wcslen(zip_path); /* Replace "00" with version */ |
e684db95 AM |
64 | zip_path[bufsz - 6] = VERSION[0]; |
65 | zip_path[bufsz - 5] = VERSION[2]; | |
e3852288 JB |
66 | --- Python-3.2/Lib/site.py.orig 2011-04-02 08:25:12.000000000 +0200 |
67 | +++ Python-3.2/Lib/site.py 2011-04-02 08:32:32.061730568 +0200 | |
68 | @@ -289,9 +289,8 @@ | |
f215c9da AF |
69 | "python" + sys.version[:3], |
70 | "site-packages")) | |
e3852288 | 71 | sitepackages.append(os.path.join(prefix, sys.lib, "site-python")) |
f215c9da | 72 | - if sys.lib != 'lib': |
e3852288 JB |
73 | - sitepackages.append(os.path.join(prefix, "lib", "python" + sys.version[:3], "site-packages")) |
74 | - sitepackages.append(os.path.join(prefix, "lib", "site-python")) | |
75 | + sitepackages.append(os.path.join(prefix, "share", "python" + sys.version[:3], "site-packages")) | |
76 | + sitepackages.append(os.path.join(prefix, "share", "site-python")) | |
f215c9da | 77 | else: |
e3852288 JB |
78 | sitepackages.append(prefix) |
79 | sitepackages.append(os.path.join(prefix, sys.lib, "site-packages")) | |
f215c9da AF |
80 | --- Python-3.0.1/Lib/distutils/sysconfig.py.wiget 2009-02-25 10:58:09.000000000 +0100 |
81 | +++ Python-3.0.1/Lib/distutils/sysconfig.py 2009-02-25 10:58:09.000000000 +0100 | |
82 | @@ -114,12 +114,12 @@ def get_python_lib(plat_specific=0, stan | |
83 | prefix = plat_specific and EXEC_PREFIX or PREFIX | |
84 | ||
85 | if os.name == "posix": | |
86 | - if plat_specific: | |
87 | - lib = sys.lib | |
88 | + if plat_specific: | |
89 | + libpython = os.path.join(prefix, | |
90 | + sys.lib, "python" + get_python_version()) | |
91 | else: | |
92 | - lib = 'lib' | |
93 | - libpython = os.path.join(prefix, | |
94 | - lib, "python" + get_python_version()) | |
95 | + libpython = os.path.join(prefix, | |
96 | + "share", "python" + get_python_version()) | |
97 | if standard_lib: | |
98 | return libpython | |
99 | else: | |
e3852288 JB |
100 | --- Python-3.2/Lib/distutils/command/install.py.orig 2011-04-02 08:25:12.000000000 +0200 |
101 | +++ Python-3.2/Lib/distutils/command/install.py 2011-04-02 08:33:35.957734759 +0200 | |
102 | @@ -48,14 +48,14 @@ | |
f215c9da AF |
103 | |
104 | INSTALL_SCHEMES = { | |
105 | 'unix_prefix': { | |
106 | - 'purelib': '$base/lib/python$py_version_short/site-packages', | |
107 | + 'purelib': '$base/share/python$py_version_short/site-packages', | |
108 | 'platlib': '$platbase/'+libname+'/python$py_version_short/site-packages', | |
e3852288 | 109 | 'headers': '$base/include/python$py_version_short$abiflags/$dist_name', |
f215c9da AF |
110 | 'scripts': '$base/bin', |
111 | 'data' : '$base', | |
112 | }, | |
113 | 'unix_home': { | |
114 | - 'purelib': '$base/lib/python', | |
115 | + 'purelib': '$base/share/python', | |
116 | 'platlib': '$base/'+libname+'/python', | |
117 | 'headers': '$base/include/python/$dist_name', | |
118 | 'scripts': '$base/bin', | |
e3852288 JB |
119 | --- Python-3.2/Makefile.pre.in.orig 2011-04-02 08:25:12.000000000 +0200 |
120 | +++ Python-3.2/Makefile.pre.in 2011-04-02 08:34:06.809736435 +0200 | |
121 | @@ -104,7 +104,7 @@ | |
f215c9da AF |
122 | MANDIR= @mandir@ |
123 | INCLUDEDIR= @includedir@ | |
124 | CONFINCLUDEDIR= $(exec_prefix)/include | |
125 | -SCRIPTDIR= $(prefix)/$(LIB) | |
126 | +SCRIPTDIR= $(prefix)/share | |
e3852288 | 127 | ABIFLAGS= @ABIFLAGS@ |
f215c9da AF |
128 | |
129 | # Detailed destination directories | |
314cf8f7 AF |
130 | --- Python-3.0.1/Lib/distutils/tests/test_install.py.wig 2009-02-25 11:42:38.000000000 +0100 |
131 | +++ Python-3.0.1/Lib/distutils/tests/test_install.py 2009-02-25 11:51:23.000000000 +0100 | |
132 | @@ -38,7 +38,7 @@ class InstallTestCase(support.TempdirMan | |
133 | expected = os.path.normpath(expected) | |
134 | self.assertEqual(got, expected) | |
135 | ||
136 | - libdir = os.path.join(destination, "lib", "python") | |
137 | + libdir = os.path.join(destination, "share", "python") | |
138 | platlibdir = os.path.join(destination, sys.lib, "python") | |
139 | check_path(cmd.install_lib, libdir) | |
140 | check_path(cmd.install_platlib, platlibdir) |