|
| 1 | +diff -aurN Python-3.3.0.orig/Lib/distutils/command/install.py Python-3.3.0/Lib/distutils/command/install.py |
| 2 | +--- Python-3.3.0.orig/Lib/distutils/command/install.py 2012-10-02 15:36:16.888303199 +0200 |
| 3 | ++++ Python-3.3.0/Lib/distutils/command/install.py 2012-10-02 15:42:47.969469921 +0200 |
| 4 | +@@ -45,14 +45,14 @@ |
| 5 | + INSTALL_SCHEMES = { |
| 6 | + 'unix_prefix': { |
| 7 | + 'purelib': '$base/lib/python$py_version_short/site-packages', |
| 8 | +- 'platlib': '$platbase/lib/python$py_version_short/site-packages', |
| 9 | ++ 'platlib': '$platbase/lib64/python$py_version_short/site-packages', |
| 10 | + 'headers': '$base/include/python$py_version_short$abiflags/$dist_name', |
| 11 | + 'scripts': '$base/bin', |
| 12 | + 'data' : '$base', |
| 13 | + }, |
| 14 | + 'unix_home': { |
| 15 | + 'purelib': '$base/lib/python', |
| 16 | +- 'platlib': '$base/lib/python', |
| 17 | ++ 'platlib': '$base/lib64/python', |
| 18 | + 'headers': '$base/include/python/$dist_name', |
| 19 | + 'scripts': '$base/bin', |
| 20 | + 'data' : '$base', |
| 21 | +diff -aurN Python-3.3.0.orig/Lib/distutils/sysconfig.py Python-3.3.0/Lib/distutils/sysconfig.py |
| 22 | +--- Python-3.3.0.orig/Lib/distutils/sysconfig.py 2012-10-02 15:36:16.888303199 +0200 |
| 23 | ++++ Python-3.3.0/Lib/distutils/sysconfig.py 2012-10-02 15:45:39.486653263 +0200 |
| 24 | +@@ -139,8 +139,12 @@ |
| 25 | + prefix = plat_specific and EXEC_PREFIX or PREFIX |
| 26 | + |
| 27 | + if os.name == "posix": |
| 28 | ++ if plat_specific or standard_lib: |
| 29 | ++ lib = "lib64" |
| 30 | ++ else: |
| 31 | ++ lib = "lib" |
| 32 | + libpython = os.path.join(prefix, |
| 33 | +- "lib", "python" + get_python_version()) |
| 34 | ++ lib, "python" + get_python_version()) |
| 35 | + if standard_lib: |
| 36 | + return libpython |
| 37 | + else: |
| 38 | +diff -aurN Python-3.3.0.orig/Lib/site.py Python-3.3.0/Lib/site.py |
| 39 | +--- Python-3.3.0.orig/Lib/site.py 2012-10-02 15:36:16.877302790 +0200 |
| 40 | ++++ Python-3.3.0/Lib/site.py 2012-10-02 15:49:53.994838722 +0200 |
| 41 | +@@ -303,12 +303,16 @@ |
| 42 | + if sys.platform in ('os2emx', 'riscos'): |
| 43 | + sitepackages.append(os.path.join(prefix, "Lib", "site-packages")) |
| 44 | + elif os.sep == '/': |
| 45 | ++ sitepackages.append(os.path.join(prefix, "lib64", |
| 46 | ++ "python" + sys.version[:3], |
| 47 | ++ "site-packages")) |
| 48 | + sitepackages.append(os.path.join(prefix, "lib", |
| 49 | + "python" + sys.version[:3], |
| 50 | + "site-packages")) |
| 51 | + sitepackages.append(os.path.join(prefix, "lib", "site-python")) |
| 52 | + else: |
| 53 | + sitepackages.append(prefix) |
| 54 | ++ sitepackages.append(os.path.join(prefix, "lib64", "site-packages")) |
| 55 | + sitepackages.append(os.path.join(prefix, "lib", "site-packages")) |
| 56 | + if sys.platform == "darwin": |
| 57 | + # for framework builds *only* we add the standard Apple |
| 58 | +diff -aurN Python-3.3.0.orig/Lib/sysconfig.py Python-3.3.0/Lib/sysconfig.py |
| 59 | +--- Python-3.3.0.orig/Lib/sysconfig.py 2012-10-02 15:36:16.891303311 +0200 |
| 60 | ++++ Python-3.3.0/Lib/sysconfig.py 2012-10-02 15:51:54.318165617 +0200 |
| 61 | +@@ -21,10 +21,10 @@ |
| 62 | + |
| 63 | + _INSTALL_SCHEMES = { |
| 64 | + 'posix_prefix': { |
| 65 | +- 'stdlib': '{installed_base}/lib/python{py_version_short}', |
| 66 | +- 'platstdlib': '{platbase}/lib/python{py_version_short}', |
| 67 | ++ 'stdlib': '{installed_base}/lib64/python{py_version_short}', |
| 68 | ++ 'platstdlib': '{platbase}/lib64/python{py_version_short}', |
| 69 | + 'purelib': '{base}/lib/python{py_version_short}/site-packages', |
| 70 | +- 'platlib': '{platbase}/lib/python{py_version_short}/site-packages', |
| 71 | ++ 'platlib': '{platbase}/lib64/python{py_version_short}/site-packages', |
| 72 | + 'include': |
| 73 | + '{installed_base}/include/python{py_version_short}{abiflags}', |
| 74 | + 'platinclude': |
| 75 | +@@ -33,10 +33,10 @@ |
| 76 | + 'data': '{base}', |
| 77 | + }, |
| 78 | + 'posix_home': { |
| 79 | +- 'stdlib': '{installed_base}/lib/python', |
| 80 | +- 'platstdlib': '{base}/lib/python', |
| 81 | ++ 'stdlib': '{installed_base}/lib64/python', |
| 82 | ++ 'platstdlib': '{base}/lib64/python', |
| 83 | + 'purelib': '{base}/lib/python', |
| 84 | +- 'platlib': '{base}/lib/python', |
| 85 | ++ 'platlib': '{base}/lib64/python', |
| 86 | + 'include': '{installed_base}/include/python', |
| 87 | + 'platinclude': '{installed_base}/include/python', |
| 88 | + 'scripts': '{base}/bin', |
| 89 | +@@ -81,10 +81,10 @@ |
| 90 | + 'data': '{userbase}', |
| 91 | + }, |
| 92 | + 'posix_user': { |
| 93 | +- 'stdlib': '{userbase}/lib/python{py_version_short}', |
| 94 | +- 'platstdlib': '{userbase}/lib/python{py_version_short}', |
| 95 | ++ 'stdlib': '{userbase}/lib64/python{py_version_short}', |
| 96 | ++ 'platstdlib': '{userbase}/lib64/python{py_version_short}', |
| 97 | + 'purelib': '{userbase}/lib/python{py_version_short}/site-packages', |
| 98 | +- 'platlib': '{userbase}/lib/python{py_version_short}/site-packages', |
| 99 | ++ 'platlib': '{userbase}/lib64/python{py_version_short}/site-packages', |
| 100 | + 'include': '{userbase}/include/python{py_version_short}', |
| 101 | + 'scripts': '{userbase}/bin', |
| 102 | + 'data': '{userbase}', |
| 103 | +diff -aurN Python-3.3.0.orig/Modules/getpath.c Python-3.3.0/Modules/getpath.c |
| 104 | +--- Python-3.3.0.orig/Modules/getpath.c 2012-10-02 15:36:16.860302152 +0200 |
| 105 | ++++ Python-3.3.0/Modules/getpath.c 2012-10-02 15:57:35.280477469 +0200 |
| 106 | +@@ -123,7 +123,7 @@ |
| 107 | + |
| 108 | + #ifndef PYTHONPATH |
| 109 | + #define PYTHONPATH PREFIX "/lib/python" VERSION ":" \ |
| 110 | +- EXEC_PREFIX "/lib/python" VERSION "/lib-dynload" |
| 111 | ++ EXEC_PREFIX "/lib64/python" VERSION "/lib-dynload" |
| 112 | + #endif |
| 113 | + |
| 114 | + #ifndef LANDMARK |
| 115 | +@@ -136,6 +136,7 @@ |
| 116 | + static wchar_t *module_search_path = NULL; |
| 117 | + static int module_search_path_malloced = 0; |
| 118 | + static wchar_t *lib_python = L"lib/python" VERSION; |
| 119 | ++static wchar_t *lib64_python = L"lib64/python" VERSION; |
| 120 | + |
| 121 | + static void |
| 122 | + reduce(wchar_t *dir) |
| 123 | +@@ -391,7 +392,7 @@ |
| 124 | + wcsncpy(exec_prefix, delim+1, MAXPATHLEN); |
| 125 | + else |
| 126 | + wcsncpy(exec_prefix, home, MAXPATHLEN); |
| 127 | +- joinpath(exec_prefix, lib_python); |
| 128 | ++ joinpath(exec_prefix, lib64_python); |
| 129 | + joinpath(exec_prefix, L"lib-dynload"); |
| 130 | + return 1; |
| 131 | + } |
| 132 | +@@ -432,7 +433,7 @@ |
| 133 | + copy_absolute(exec_prefix, argv0_path, MAXPATHLEN+1); |
| 134 | + do { |
| 135 | + n = wcslen(exec_prefix); |
| 136 | +- joinpath(exec_prefix, lib_python); |
| 137 | ++ joinpath(exec_prefix, lib64_python); |
| 138 | + joinpath(exec_prefix, L"lib-dynload"); |
| 139 | + if (isdir(exec_prefix)) |
| 140 | + return 1; |
| 141 | +@@ -442,7 +443,7 @@ |
| 142 | + |
| 143 | + /* Look at configure's EXEC_PREFIX */ |
| 144 | + wcsncpy(exec_prefix, _exec_prefix, MAXPATHLEN); |
| 145 | +- joinpath(exec_prefix, lib_python); |
| 146 | ++ joinpath(exec_prefix, lib64_python); |
| 147 | + joinpath(exec_prefix, L"lib-dynload"); |
| 148 | + if (isdir(exec_prefix)) |
| 149 | + return 1; |
| 150 | +@@ -687,7 +688,7 @@ |
| 151 | + fprintf(stderr, |
| 152 | + "Could not find platform dependent libraries <exec_prefix>\n"); |
| 153 | + wcsncpy(exec_prefix, _exec_prefix, MAXPATHLEN); |
| 154 | +- joinpath(exec_prefix, L"lib/lib-dynload"); |
| 155 | ++ joinpath(exec_prefix, L"lib64/lib-dynload"); |
| 156 | + } |
| 157 | + /* If we found EXEC_PREFIX do *not* reduce it! (Yet.) */ |
| 158 | + |
0 commit comments