diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3/python-3.3-multilib.patch')
-rw-r--r-- | meta/recipes-devtools/python/python3/python-3.3-multilib.patch | 180 |
1 files changed, 91 insertions, 89 deletions
diff --git a/meta/recipes-devtools/python/python3/python-3.3-multilib.patch b/meta/recipes-devtools/python/python3/python-3.3-multilib.patch index 7d66a0e00d..b3e986089e 100644 --- a/meta/recipes-devtools/python/python3/python-3.3-multilib.patch +++ b/meta/recipes-devtools/python/python3/python-3.3-multilib.patch | |||
@@ -1,14 +1,17 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
1 | get the sys.lib from python itself and do not use hardcoded value of 'lib' | 3 | get the sys.lib from python itself and do not use hardcoded value of 'lib' |
2 | 4 | ||
3 | -Khem | 5 | 02/2015 Rebased for 3.4.2 |
4 | 6 | ||
5 | Upstream-Status: Pending | 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
8 | Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> | ||
6 | 9 | ||
7 | Index: Python-3.3.2/Include/pythonrun.h | 10 | Index: Python-3.4.2/Include/pythonrun.h |
8 | =================================================================== | 11 | =================================================================== |
9 | --- Python-3.3.2.orig/Include/pythonrun.h 2013-05-15 09:32:54.000000000 -0700 | 12 | --- Python-3.4.2.orig/Include/pythonrun.h |
10 | +++ Python-3.3.2/Include/pythonrun.h 2013-07-27 16:19:54.099877246 -0700 | 13 | +++ Python-3.4.2/Include/pythonrun.h |
11 | @@ -181,6 +181,8 @@ | 14 | @@ -220,6 +220,8 @@ int _Py_CheckPython3(); |
12 | /* In their own files */ | 15 | /* In their own files */ |
13 | PyAPI_FUNC(const char *) Py_GetVersion(void); | 16 | PyAPI_FUNC(const char *) Py_GetVersion(void); |
14 | PyAPI_FUNC(const char *) Py_GetPlatform(void); | 17 | PyAPI_FUNC(const char *) Py_GetPlatform(void); |
@@ -17,20 +20,20 @@ Index: Python-3.3.2/Include/pythonrun.h | |||
17 | PyAPI_FUNC(const char *) Py_GetCopyright(void); | 20 | PyAPI_FUNC(const char *) Py_GetCopyright(void); |
18 | PyAPI_FUNC(const char *) Py_GetCompiler(void); | 21 | PyAPI_FUNC(const char *) Py_GetCompiler(void); |
19 | PyAPI_FUNC(const char *) Py_GetBuildInfo(void); | 22 | PyAPI_FUNC(const char *) Py_GetBuildInfo(void); |
20 | Index: Python-3.3.2/Lib/distutils/command/install.py | 23 | Index: Python-3.4.2/Lib/distutils/command/install.py |
21 | =================================================================== | 24 | =================================================================== |
22 | --- Python-3.3.2.orig/Lib/distutils/command/install.py 2013-05-15 09:32:54.000000000 -0700 | 25 | --- Python-3.4.2.orig/Lib/distutils/command/install.py |
23 | +++ Python-3.3.2/Lib/distutils/command/install.py 2013-07-27 16:19:54.099877246 -0700 | 26 | +++ Python-3.4.2/Lib/distutils/command/install.py |
24 | @@ -25,6 +25,8 @@ | 27 | @@ -19,6 +19,8 @@ from site import USER_BASE |
25 | from site import USER_SITE | 28 | from site import USER_SITE |
26 | HAS_USER_SITE = True | 29 | HAS_USER_SITE = True |
27 | 30 | ||
28 | +libname = sys.lib | 31 | +libname = sys.lib |
29 | + | 32 | + |
30 | if sys.version < "2.2": | 33 | WINDOWS_SCHEME = { |
31 | WINDOWS_SCHEME = { | 34 | 'purelib': '$base/Lib/site-packages', |
32 | 'purelib': '$base', | 35 | 'platlib': '$base/Lib/site-packages', |
33 | @@ -45,7 +47,7 @@ | 36 | @@ -30,7 +32,7 @@ WINDOWS_SCHEME = { |
34 | INSTALL_SCHEMES = { | 37 | INSTALL_SCHEMES = { |
35 | 'unix_prefix': { | 38 | 'unix_prefix': { |
36 | 'purelib': '$base/lib/python$py_version_short/site-packages', | 39 | 'purelib': '$base/lib/python$py_version_short/site-packages', |
@@ -39,11 +42,11 @@ Index: Python-3.3.2/Lib/distutils/command/install.py | |||
39 | 'headers': '$base/include/python$py_version_short$abiflags/$dist_name', | 42 | 'headers': '$base/include/python$py_version_short$abiflags/$dist_name', |
40 | 'scripts': '$base/bin', | 43 | 'scripts': '$base/bin', |
41 | 'data' : '$base', | 44 | 'data' : '$base', |
42 | Index: Python-3.3.2/Lib/pydoc.py | 45 | Index: Python-3.4.2/Lib/pydoc.py |
43 | =================================================================== | 46 | =================================================================== |
44 | --- Python-3.3.2.orig/Lib/pydoc.py 2013-05-15 09:32:55.000000000 -0700 | 47 | --- Python-3.4.2.orig/Lib/pydoc.py |
45 | +++ Python-3.3.2/Lib/pydoc.py 2013-07-27 16:19:54.103877246 -0700 | 48 | +++ Python-3.4.2/Lib/pydoc.py |
46 | @@ -372,7 +372,7 @@ | 49 | @@ -394,7 +394,7 @@ class Doc: |
47 | 50 | ||
48 | docloc = os.environ.get("PYTHONDOCS", self.PYTHONDOCS) | 51 | docloc = os.environ.get("PYTHONDOCS", self.PYTHONDOCS) |
49 | 52 | ||
@@ -52,38 +55,11 @@ Index: Python-3.3.2/Lib/pydoc.py | |||
52 | "python%d.%d" % sys.version_info[:2]) | 55 | "python%d.%d" % sys.version_info[:2]) |
53 | if (isinstance(object, type(os)) and | 56 | if (isinstance(object, type(os)) and |
54 | (object.__name__ in ('errno', 'exceptions', 'gc', 'imp', | 57 | (object.__name__ in ('errno', 'exceptions', 'gc', 'imp', |
55 | Index: Python-3.3.2/Lib/site.py | 58 | Index: Python-3.4.2/Lib/trace.py |
56 | =================================================================== | ||
57 | --- Python-3.3.2.orig/Lib/site.py 2013-05-15 09:32:55.000000000 -0700 | ||
58 | +++ Python-3.3.2/Lib/site.py 2013-07-27 16:19:54.103877246 -0700 | ||
59 | @@ -303,13 +303,19 @@ | ||
60 | if sys.platform in ('os2emx', 'riscos'): | ||
61 | sitepackages.append(os.path.join(prefix, "Lib", "site-packages")) | ||
62 | elif os.sep == '/': | ||
63 | - sitepackages.append(os.path.join(prefix, "lib", | ||
64 | + sitepackages.append(os.path.join(prefix, sys.lib, | ||
65 | "python" + sys.version[:3], | ||
66 | "site-packages")) | ||
67 | - sitepackages.append(os.path.join(prefix, "lib", "site-python")) | ||
68 | + if sys.lib != "lib": | ||
69 | + sitepackages.append(os.path.join(prefix, "lib", | ||
70 | + "python" + sys.version[:3], | ||
71 | + "site-packages")) | ||
72 | + sitepackages.append(os.path.join(prefix, sys.lib, "site-python")) | ||
73 | + if sys.lib != "lib": | ||
74 | + sitepackages.append(os.path.join(prefix, "lib", "site-python")) | ||
75 | else: | ||
76 | sitepackages.append(prefix) | ||
77 | - sitepackages.append(os.path.join(prefix, "lib", "site-packages")) | ||
78 | + sitepackages.append(os.path.join(prefix, sys.lib, "site-packages")) | ||
79 | if sys.platform == "darwin": | ||
80 | # for framework builds *only* we add the standard Apple | ||
81 | # locations. | ||
82 | Index: Python-3.3.2/Lib/trace.py | ||
83 | =================================================================== | 59 | =================================================================== |
84 | --- Python-3.3.2.orig/Lib/trace.py 2013-05-15 09:32:56.000000000 -0700 | 60 | --- Python-3.4.2.orig/Lib/trace.py |
85 | +++ Python-3.3.2/Lib/trace.py 2013-07-27 16:19:54.103877246 -0700 | 61 | +++ Python-3.4.2/Lib/trace.py |
86 | @@ -751,10 +751,10 @@ | 62 | @@ -751,10 +751,10 @@ def main(argv=None): |
87 | # should I also call expanduser? (after all, could use $HOME) | 63 | # should I also call expanduser? (after all, could use $HOME) |
88 | 64 | ||
89 | s = s.replace("$prefix", | 65 | s = s.replace("$prefix", |
@@ -96,11 +72,11 @@ Index: Python-3.3.2/Lib/trace.py | |||
96 | "python" + sys.version[:3])) | 72 | "python" + sys.version[:3])) |
97 | s = os.path.normpath(s) | 73 | s = os.path.normpath(s) |
98 | ignore_dirs.append(s) | 74 | ignore_dirs.append(s) |
99 | Index: Python-3.3.2/Makefile.pre.in | 75 | Index: Python-3.4.2/Makefile.pre.in |
100 | =================================================================== | 76 | =================================================================== |
101 | --- Python-3.3.2.orig/Makefile.pre.in 2013-07-27 16:19:16.000000000 -0700 | 77 | --- Python-3.4.2.orig/Makefile.pre.in |
102 | +++ Python-3.3.2/Makefile.pre.in 2013-07-27 16:19:54.103877246 -0700 | 78 | +++ Python-3.4.2/Makefile.pre.in |
103 | @@ -96,6 +96,8 @@ | 79 | @@ -101,6 +101,8 @@ PY_CORE_CFLAGS= $(PY_CFLAGS) $(PY_CFLAGS |
104 | 80 | ||
105 | # Machine-dependent subdirectories | 81 | # Machine-dependent subdirectories |
106 | MACHDEP= @MACHDEP@ | 82 | MACHDEP= @MACHDEP@ |
@@ -109,7 +85,7 @@ Index: Python-3.3.2/Makefile.pre.in | |||
109 | 85 | ||
110 | # Multiarch directory (may be empty) | 86 | # Multiarch directory (may be empty) |
111 | MULTIARCH= @MULTIARCH@ | 87 | MULTIARCH= @MULTIARCH@ |
112 | @@ -115,7 +117,7 @@ | 88 | @@ -120,7 +122,7 @@ LIBDIR= @libdir@ |
113 | MANDIR= @mandir@ | 89 | MANDIR= @mandir@ |
114 | INCLUDEDIR= @includedir@ | 90 | INCLUDEDIR= @includedir@ |
115 | CONFINCLUDEDIR= $(exec_prefix)/include | 91 | CONFINCLUDEDIR= $(exec_prefix)/include |
@@ -118,7 +94,7 @@ Index: Python-3.3.2/Makefile.pre.in | |||
118 | ABIFLAGS= @ABIFLAGS@ | 94 | ABIFLAGS= @ABIFLAGS@ |
119 | 95 | ||
120 | # Detailed destination directories | 96 | # Detailed destination directories |
121 | @@ -635,6 +637,7 @@ | 97 | @@ -712,6 +714,7 @@ Modules/getpath.o: $(srcdir)/Modules/get |
122 | -DEXEC_PREFIX='"$(exec_prefix)"' \ | 98 | -DEXEC_PREFIX='"$(exec_prefix)"' \ |
123 | -DVERSION='"$(VERSION)"' \ | 99 | -DVERSION='"$(VERSION)"' \ |
124 | -DVPATH='"$(VPATH)"' \ | 100 | -DVPATH='"$(VPATH)"' \ |
@@ -126,7 +102,7 @@ Index: Python-3.3.2/Makefile.pre.in | |||
126 | -o $@ $(srcdir)/Modules/getpath.c | 102 | -o $@ $(srcdir)/Modules/getpath.c |
127 | 103 | ||
128 | Modules/python.o: $(srcdir)/Modules/python.c | 104 | Modules/python.o: $(srcdir)/Modules/python.c |
129 | @@ -701,7 +704,7 @@ | 105 | @@ -780,7 +783,7 @@ $(AST_C): $(AST_H) $(AST_ASDL) $(ASDLGEN |
130 | Python/compile.o Python/symtable.o Python/ast.o: $(GRAMMAR_H) $(AST_H) | 106 | Python/compile.o Python/symtable.o Python/ast.o: $(GRAMMAR_H) $(AST_H) |
131 | 107 | ||
132 | Python/getplatform.o: $(srcdir)/Python/getplatform.c | 108 | Python/getplatform.o: $(srcdir)/Python/getplatform.c |
@@ -135,11 +111,11 @@ Index: Python-3.3.2/Makefile.pre.in | |||
135 | 111 | ||
136 | Python/importdl.o: $(srcdir)/Python/importdl.c | 112 | Python/importdl.o: $(srcdir)/Python/importdl.c |
137 | $(CC) -c $(PY_CORE_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c | 113 | $(CC) -c $(PY_CORE_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c |
138 | Index: Python-3.3.2/Modules/getpath.c | 114 | Index: Python-3.4.2/Modules/getpath.c |
139 | =================================================================== | 115 | =================================================================== |
140 | --- Python-3.3.2.orig/Modules/getpath.c 2013-05-15 09:32:59.000000000 -0700 | 116 | --- Python-3.4.2.orig/Modules/getpath.c |
141 | +++ Python-3.3.2/Modules/getpath.c 2013-07-27 16:19:54.107877246 -0700 | 117 | +++ Python-3.4.2/Modules/getpath.c |
142 | @@ -121,9 +121,11 @@ | 118 | @@ -117,9 +117,11 @@ |
143 | #define EXEC_PREFIX PREFIX | 119 | #define EXEC_PREFIX PREFIX |
144 | #endif | 120 | #endif |
145 | 121 | ||
@@ -153,20 +129,19 @@ Index: Python-3.3.2/Modules/getpath.c | |||
153 | #endif | 129 | #endif |
154 | 130 | ||
155 | #ifndef LANDMARK | 131 | #ifndef LANDMARK |
156 | @@ -135,7 +137,7 @@ | 132 | @@ -130,6 +132,7 @@ static wchar_t prefix[MAXPATHLEN+1]; |
133 | static wchar_t exec_prefix[MAXPATHLEN+1]; | ||
157 | static wchar_t progpath[MAXPATHLEN+1]; | 134 | static wchar_t progpath[MAXPATHLEN+1]; |
158 | static wchar_t *module_search_path = NULL; | 135 | static wchar_t *module_search_path = NULL; |
159 | static int module_search_path_malloced = 0; | ||
160 | -static wchar_t *lib_python = L"lib/python" VERSION; | ||
161 | +static wchar_t *lib_python = L"" LIB_PYTHON; | 136 | +static wchar_t *lib_python = L"" LIB_PYTHON; |
162 | 137 | ||
163 | static void | 138 | static void |
164 | reduce(wchar_t *dir) | 139 | reduce(wchar_t *dir) |
165 | Index: Python-3.3.2/Python/getplatform.c | 140 | Index: Python-3.4.2/Python/getplatform.c |
166 | =================================================================== | 141 | =================================================================== |
167 | --- Python-3.3.2.orig/Python/getplatform.c 2013-05-15 09:33:00.000000000 -0700 | 142 | --- Python-3.4.2.orig/Python/getplatform.c |
168 | +++ Python-3.3.2/Python/getplatform.c 2013-07-27 16:19:54.107877246 -0700 | 143 | +++ Python-3.4.2/Python/getplatform.c |
169 | @@ -10,3 +10,23 @@ | 144 | @@ -10,3 +10,23 @@ Py_GetPlatform(void) |
170 | { | 145 | { |
171 | return PLATFORM; | 146 | return PLATFORM; |
172 | } | 147 | } |
@@ -190,11 +165,11 @@ Index: Python-3.3.2/Python/getplatform.c | |||
190 | +{ | 165 | +{ |
191 | + return LIB; | 166 | + return LIB; |
192 | +} | 167 | +} |
193 | Index: Python-3.3.2/Python/sysmodule.c | 168 | Index: Python-3.4.2/Python/sysmodule.c |
194 | =================================================================== | 169 | =================================================================== |
195 | --- Python-3.3.2.orig/Python/sysmodule.c 2013-05-15 09:33:00.000000000 -0700 | 170 | --- Python-3.4.2.orig/Python/sysmodule.c |
196 | +++ Python-3.3.2/Python/sysmodule.c 2013-07-27 16:19:54.107877246 -0700 | 171 | +++ Python-3.4.2/Python/sysmodule.c |
197 | @@ -1612,6 +1612,10 @@ | 172 | @@ -1697,6 +1697,10 @@ _PySys_Init(void) |
198 | PyUnicode_FromString(Py_GetCopyright())); | 173 | PyUnicode_FromString(Py_GetCopyright())); |
199 | SET_SYS_FROM_STRING("platform", | 174 | SET_SYS_FROM_STRING("platform", |
200 | PyUnicode_FromString(Py_GetPlatform())); | 175 | PyUnicode_FromString(Py_GetPlatform())); |
@@ -205,11 +180,11 @@ Index: Python-3.3.2/Python/sysmodule.c | |||
205 | SET_SYS_FROM_STRING("executable", | 180 | SET_SYS_FROM_STRING("executable", |
206 | PyUnicode_FromWideChar( | 181 | PyUnicode_FromWideChar( |
207 | Py_GetProgramFullPath(), -1)); | 182 | Py_GetProgramFullPath(), -1)); |
208 | Index: Python-3.3.2/setup.py | 183 | Index: Python-3.4.2/setup.py |
209 | =================================================================== | 184 | =================================================================== |
210 | --- Python-3.3.2.orig/setup.py 2013-07-27 16:19:17.000000000 -0700 | 185 | --- Python-3.4.2.orig/setup.py |
211 | +++ Python-3.3.2/setup.py 2013-07-27 16:19:54.107877246 -0700 | 186 | +++ Python-3.4.2/setup.py |
212 | @@ -439,7 +439,7 @@ | 187 | @@ -454,7 +454,7 @@ class PyBuildExt(build_ext): |
213 | # directories (i.e. '.' and 'Include') must be first. See issue | 188 | # directories (i.e. '.' and 'Include') must be first. See issue |
214 | # 10520. | 189 | # 10520. |
215 | if not cross_compiling: | 190 | if not cross_compiling: |
@@ -218,7 +193,7 @@ Index: Python-3.3.2/setup.py | |||
218 | add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | 193 | add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') |
219 | # only change this for cross builds for 3.3, issues on Mageia | 194 | # only change this for cross builds for 3.3, issues on Mageia |
220 | if cross_compiling: | 195 | if cross_compiling: |
221 | @@ -497,8 +497,7 @@ | 196 | @@ -512,8 +512,7 @@ class PyBuildExt(build_ext): |
222 | # be assumed that no additional -I,-L directives are needed. | 197 | # be assumed that no additional -I,-L directives are needed. |
223 | if not cross_compiling: | 198 | if not cross_compiling: |
224 | lib_dirs = self.compiler.library_dirs + [ | 199 | lib_dirs = self.compiler.library_dirs + [ |
@@ -228,7 +203,7 @@ Index: Python-3.3.2/setup.py | |||
228 | ] | 203 | ] |
229 | inc_dirs = self.compiler.include_dirs + ['/usr/include'] | 204 | inc_dirs = self.compiler.include_dirs + ['/usr/include'] |
230 | else: | 205 | else: |
231 | @@ -675,11 +674,11 @@ | 206 | @@ -696,11 +695,11 @@ class PyBuildExt(build_ext): |
232 | elif curses_library: | 207 | elif curses_library: |
233 | readline_libs.append(curses_library) | 208 | readline_libs.append(curses_library) |
234 | elif self.compiler.find_library_file(lib_dirs + | 209 | elif self.compiler.find_library_file(lib_dirs + |
@@ -242,11 +217,11 @@ Index: Python-3.3.2/setup.py | |||
242 | extra_link_args=readline_extra_link_args, | 217 | extra_link_args=readline_extra_link_args, |
243 | libraries=readline_libs) ) | 218 | libraries=readline_libs) ) |
244 | else: | 219 | else: |
245 | Index: Python-3.3.2/Lib/sysconfig.py | 220 | Index: Python-3.4.2/Lib/sysconfig.py |
246 | =================================================================== | 221 | =================================================================== |
247 | --- Python-3.3.2.orig/Lib/sysconfig.py 2013-05-15 09:32:55.000000000 -0700 | 222 | --- Python-3.4.2.orig/Lib/sysconfig.py |
248 | +++ Python-3.3.2/Lib/sysconfig.py 2013-07-27 16:19:54.111877246 -0700 | 223 | +++ Python-3.4.2/Lib/sysconfig.py |
249 | @@ -21,10 +21,10 @@ | 224 | @@ -20,10 +20,10 @@ __all__ = [ |
250 | 225 | ||
251 | _INSTALL_SCHEMES = { | 226 | _INSTALL_SCHEMES = { |
252 | 'posix_prefix': { | 227 | 'posix_prefix': { |
@@ -260,7 +235,7 @@ Index: Python-3.3.2/Lib/sysconfig.py | |||
260 | 'include': | 235 | 'include': |
261 | '{installed_base}/include/python{py_version_short}{abiflags}', | 236 | '{installed_base}/include/python{py_version_short}{abiflags}', |
262 | 'platinclude': | 237 | 'platinclude': |
263 | @@ -33,10 +33,10 @@ | 238 | @@ -32,10 +32,10 @@ _INSTALL_SCHEMES = { |
264 | 'data': '{base}', | 239 | 'data': '{base}', |
265 | }, | 240 | }, |
266 | 'posix_home': { | 241 | 'posix_home': { |
@@ -274,7 +249,7 @@ Index: Python-3.3.2/Lib/sysconfig.py | |||
274 | 'include': '{installed_base}/include/python', | 249 | 'include': '{installed_base}/include/python', |
275 | 'platinclude': '{installed_base}/include/python', | 250 | 'platinclude': '{installed_base}/include/python', |
276 | 'scripts': '{base}/bin', | 251 | 'scripts': '{base}/bin', |
277 | @@ -81,10 +81,10 @@ | 252 | @@ -61,10 +61,10 @@ _INSTALL_SCHEMES = { |
278 | 'data': '{userbase}', | 253 | 'data': '{userbase}', |
279 | }, | 254 | }, |
280 | 'posix_user': { | 255 | 'posix_user': { |
@@ -288,11 +263,11 @@ Index: Python-3.3.2/Lib/sysconfig.py | |||
288 | 'include': '{userbase}/include/python{py_version_short}', | 263 | 'include': '{userbase}/include/python{py_version_short}', |
289 | 'scripts': '{userbase}/bin', | 264 | 'scripts': '{userbase}/bin', |
290 | 'data': '{userbase}', | 265 | 'data': '{userbase}', |
291 | Index: Python-3.3.2/configure.ac | 266 | Index: Python-3.4.2/configure.ac |
292 | =================================================================== | 267 | =================================================================== |
293 | --- Python-3.3.2.orig/configure.ac 2013-05-15 09:33:00.000000000 -0700 | 268 | --- Python-3.4.2.orig/configure.ac |
294 | +++ Python-3.3.2/configure.ac 2013-07-27 16:19:54.111877246 -0700 | 269 | +++ Python-3.4.2/configure.ac |
295 | @@ -769,6 +769,41 @@ | 270 | @@ -791,6 +791,41 @@ esac |
296 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | 271 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) |
297 | AC_SUBST(MULTIARCH) | 272 | AC_SUBST(MULTIARCH) |
298 | 273 | ||
@@ -334,3 +309,30 @@ Index: Python-3.3.2/configure.ac | |||
334 | 309 | ||
335 | AC_SUBST(LIBRARY) | 310 | AC_SUBST(LIBRARY) |
336 | AC_MSG_CHECKING(LIBRARY) | 311 | AC_MSG_CHECKING(LIBRARY) |
312 | Index: Python-3.4.2/Lib/site.py | ||
313 | =================================================================== | ||
314 | --- Python-3.4.2.orig/Lib/site.py | ||
315 | +++ Python-3.4.2/Lib/site.py | ||
316 | @@ -304,13 +304,19 @@ def getsitepackages(prefixes=None): | ||
317 | seen.add(prefix) | ||
318 | |||
319 | if os.sep == '/': | ||
320 | - sitepackages.append(os.path.join(prefix, "lib", | ||
321 | + sitepackages.append(os.path.join(prefix, sys.lib, | ||
322 | "python" + sys.version[:3], | ||
323 | "site-packages")) | ||
324 | - sitepackages.append(os.path.join(prefix, "lib", "site-python")) | ||
325 | + if sys.lib != "lib": | ||
326 | + sitepackages.append(os.path.join(prefix, "lib", | ||
327 | + "python" + sys.version[:3], | ||
328 | + "site-packages")) | ||
329 | + sitepackages.append(os.path.join(prefix, sys.lib, "site-python")) | ||
330 | + if sys.lib != "lib": | ||
331 | + sitepackages.append(os.path.join(prefix, sys.lib, "site-python")) | ||
332 | else: | ||
333 | sitepackages.append(prefix) | ||
334 | - sitepackages.append(os.path.join(prefix, "lib", "site-packages")) | ||
335 | + sitepackages.append(os.path.join(prefix, sys.lib, "site-packages")) | ||
336 | if sys.platform == "darwin": | ||
337 | # for framework builds *only* we add the standard Apple | ||
338 | # locations. | ||