diff -aurN Python-3.4.2.orig/Lib/distutils/command/install.py Python-3.4.2/Lib/distutils/command/install.py
--- Python-3.4.2.orig/Lib/distutils/command/install.py 2015-02-08 20:07:32.745985651 +0100
+++ Python-3.4.2/Lib/distutils/command/install.py 2015-02-08 20:09:12.076304977 +0100
@@ -30,14 +30,14 @@
INSTALL_SCHEMES = {
'unix_prefix': {
'purelib': '$base/lib/python$py_version_short/site-packages',
- 'platlib': '$platbase/lib/python$py_version_short/site-packages',
+ 'platlib': '$platbase/lib64/python$py_version_short/site-packages',
'headers': '$base/include/python$py_version_short$abiflags/$dist_name',
'scripts': '$base/bin',
'data' : '$base',
},
'unix_home': {
'purelib': '$base/lib/python',
- 'platlib': '$base/lib/python',
+ 'platlib': '$base/lib64/python',
'headers': '$base/include/python/$dist_name',
'scripts': '$base/bin',
'data' : '$base',
diff -aurN Python-3.4.2.orig/Lib/distutils/sysconfig.py Python-3.4.2/Lib/distutils/sysconfig.py
--- Python-3.4.2.orig/Lib/distutils/sysconfig.py 2015-02-08 20:07:32.742652195 +0100
+++ Python-3.4.2/Lib/distutils/sysconfig.py 2015-02-08 20:22:43.019711316 +0100
@@ -141,8 +141,12 @@
prefix = plat_specific and EXEC_PREFIX or PREFIX
if os.name == "posix":
+ if plat_specific or standard_lib:
+ lib = "lib64"
+ else:
+ lib = "lib"
libpython = os.path.join(prefix,
- "lib", "python" + get_python_version())
+ lib, "python" + get_python_version())
if standard_lib:
return libpython
else:
diff -aurN Python-3.4.2.orig/Lib/site.py Python-3.4.2/Lib/site.py
--- Python-3.4.2.orig/Lib/site.py 2015-02-08 20:07:32.775986753 +0100
+++ Python-3.4.2/Lib/site.py 2015-02-08 20:24:14.186877018 +0100
@@ -304,12 +304,16 @@
seen.add(prefix)
if os.sep == '/':
+ sitepackages.append(os.path.join(prefix, "lib64",
+ "python" + sys.version[:3],
+ "site-packages"))
sitepackages.append(os.path.join(prefix, "lib",
"python" + sys.version[:3],
"site-packages"))
sitepackages.append(os.path.join(prefix, "lib", "site-python"))
else:
sitepackages.append(prefix)
+ sitepackages.append(os.path.join(prefix, "lib64", "site-packages"))
sitepackages.append(os.path.join(prefix, "lib", "site-packages"))
if sys.platform == "darwin":
# for framework builds *only* we add the standard Apple
diff -aurN Python-3.4.2.orig/Lib/sysconfig.py Python-3.4.2/Lib/sysconfig.py
--- Python-3.4.2.orig/Lib/sysconfig.py 2015-02-08 20:07:32.739318738 +0100
+++ Python-3.4.2/Lib/sysconfig.py 2015-02-08 20:27:21.501221891 +0100
@@ -20,10 +20,10 @@
_INSTALL_SCHEMES = {
'posix_prefix': {
- 'stdlib': '{installed_base}/lib/python{py_version_short}',
- 'platstdlib': '{platbase}/lib/python{py_version_short}',
+ 'stdlib': '{installed_base}/lib64/python{py_version_short}',
+ 'platstdlib': '{platbase}/lib64/python{py_version_short}',
'purelib': '{base}/lib/python{py_version_short}/site-packages',
- 'platlib': '{platbase}/lib/python{py_version_short}/site-packages',
+ 'platlib': '{platbase}/lib64/python{py_version_short}/site-packages',
'include':
'{installed_base}/include/python{py_version_short}{abiflags}',
'platinclude':
@@ -32,10 +32,10 @@
'data': '{base}',
},
'posix_home': {
- 'stdlib': '{installed_base}/lib/python',
- 'platstdlib': '{base}/lib/python',
+ 'stdlib': '{installed_base}/lib64/python',
+ 'platstdlib': '{base}/lib64/python',
'purelib': '{base}/lib/python',
- 'platlib': '{base}/lib/python',
+ 'platlib': '{base}/lib64/python',
'include': '{installed_base}/include/python',
'platinclude': '{installed_base}/include/python',
'scripts': '{base}/bin',
@@ -61,10 +61,10 @@
'data': '{userbase}',
},
'posix_user': {
- 'stdlib': '{userbase}/lib/python{py_version_short}',
- 'platstdlib': '{userbase}/lib/python{py_version_short}',
+ 'stdlib': '{userbase}/lib64/python{py_version_short}',
+ 'platstdlib': '{userbase}/lib64/python{py_version_short}',
'purelib': '{userbase}/lib/python{py_version_short}/site-packages',
- 'platlib': '{userbase}/lib/python{py_version_short}/site-packages',
+ 'platlib': '{userbase}/lib64/python{py_version_short}/site-packages',
'include': '{userbase}/include/python{py_version_short}',
'scripts': '{userbase}/bin',
'data': '{userbase}',
diff -aurN Python-3.4.2.orig/Makefile.pre.in Python-3.4.2/Makefile.pre.in
--- Python-3.4.2.orig/Makefile.pre.in 2015-02-08 20:07:32.739318738 +0100
+++ Python-3.4.2/Makefile.pre.in 2015-02-08 20:28:14.416685868 +0100
@@ -1310,7 +1310,7 @@
# Install the library and miscellaneous stuff needed for extending/embedding
# This goes into $(exec_prefix)
-LIBPL= $(LIBDEST)/config-$(LDVERSION)
+LIBPL= $(BINLIBDEST)/config-$(LDVERSION)
# pkgconfig directory
LIBPC= $(LIBDIR)/pkgconfig
diff -aurN Python-3.4.2.orig/Modules/getpath.c Python-3.4.2/Modules/getpath.c
--- Python-3.4.2.orig/Modules/getpath.c 2015-02-08 20:07:32.789320577 +0100
+++ Python-3.4.2/Modules/getpath.c 2015-02-08 20:34:35.188347324 +0100
@@ -119,7 +119,7 @@
#ifndef PYTHONPATH
#define PYTHONPATH PREFIX "/lib/python" VERSION ":" \
- EXEC_PREFIX "/lib/python" VERSION "/lib-dynload"
+ EXEC_PREFIX "/lib64/python" VERSION "/lib-dynload"
#endif
#ifndef LANDMARK
@@ -490,13 +490,15 @@
#endif
wchar_t *_pythonpath, *_prefix, *_exec_prefix;
wchar_t *lib_python;
+ wchar_t *lib64_python;
_pythonpath = _Py_char2wchar(PYTHONPATH, NULL);
_prefix = _Py_char2wchar(PREFIX, NULL);
_exec_prefix = _Py_char2wchar(EXEC_PREFIX, NULL);
lib_python = _Py_char2wchar("lib/python" VERSION, NULL);
+ lib64_python = _Py_char2wchar("lib64/python" VERSION, NULL);
- if (!_pythonpath || !_prefix || !_exec_prefix || !lib_python) {
+ if (!_pythonpath || !_prefix || !_exec_prefix || !lib_python || !lib64_python) {
Py_FatalError(
"Unable to decode path variables in getpath.c: "
"memory error");
@@ -689,13 +691,13 @@
zip_path[bufsz - 5] = VERSION[2];
efound = search_for_exec_prefix(argv0_path, home,
- _exec_prefix, lib_python);
+ _exec_prefix, lib64_python);
if (!efound) {
if (!Py_FrozenFlag)
fprintf(stderr,
"Could not find platform dependent libraries