]>
Commit | Line | Data |
---|---|---|
73e32db0 JK |
1 | diff -dur Python-3.2.1.orig/Lib/distutils/command/install.py Python-3.2.1/Lib/distutils/command/install.py |
2 | --- Python-3.2.1.orig/Lib/distutils/command/install.py 2011-07-15 20:16:35.526223992 +0200 | |
3 | +++ Python-3.2.1/Lib/distutils/command/install.py 2011-07-15 20:17:09.131071575 +0200 | |
48e785bb JK |
4 | @@ -48,14 +48,14 @@ |
5 | ||
6 | INSTALL_SCHEMES = { | |
7 | 'unix_prefix': { | |
8 | - 'purelib': '$base/lib/python$py_version_short/site-packages', | |
9 | + 'purelib': '$base/share/python$py_version_short/site-packages', | |
10 | 'platlib': '$platbase/'+libname+'/python$py_version_short/site-packages', | |
11 | 'headers': '$base/include/python$py_version_short$abiflags/$dist_name', | |
12 | 'scripts': '$base/bin', | |
13 | 'data' : '$base', | |
14 | }, | |
15 | 'unix_home': { | |
16 | - 'purelib': '$base/lib/python', | |
17 | + 'purelib': '$base/share/python', | |
18 | 'platlib': '$base/'+libname+'/python', | |
19 | 'headers': '$base/include/python/$dist_name', | |
20 | 'scripts': '$base/bin', | |
73e32db0 JK |
21 | diff -dur Python-3.2.1.orig/Lib/distutils/sysconfig.py Python-3.2.1/Lib/distutils/sysconfig.py |
22 | --- Python-3.2.1.orig/Lib/distutils/sysconfig.py 2011-07-15 20:16:35.526223992 +0200 | |
23 | +++ Python-3.2.1/Lib/distutils/sysconfig.py 2011-07-15 20:17:09.131071575 +0200 | |
48e785bb JK |
24 | @@ -124,12 +124,12 @@ |
25 | prefix = plat_specific and EXEC_PREFIX or PREFIX | |
26 | ||
27 | if os.name == "posix": | |
28 | - if plat_specific: | |
29 | - lib = sys.lib | |
30 | + if plat_specific: | |
31 | + libpython = os.path.join(prefix, | |
32 | + sys.lib, "python" + get_python_version()) | |
33 | else: | |
34 | - lib = 'lib' | |
35 | - libpython = os.path.join(prefix, | |
36 | - lib, "python" + get_python_version()) | |
37 | + libpython = os.path.join(prefix, | |
38 | + "share", "python" + get_python_version()) | |
39 | if standard_lib: | |
40 | return libpython | |
41 | else: | |
73e32db0 JK |
42 | diff -dur Python-3.2.1.orig/Lib/distutils/tests/test_install.py Python-3.2.1/Lib/distutils/tests/test_install.py |
43 | --- Python-3.2.1.orig/Lib/distutils/tests/test_install.py 2011-07-15 20:16:35.529557475 +0200 | |
44 | +++ Python-3.2.1/Lib/distutils/tests/test_install.py 2011-07-15 20:17:09.131071575 +0200 | |
48e785bb JK |
45 | @@ -48,7 +48,7 @@ |
46 | expected = os.path.normpath(expected) | |
47 | self.assertEqual(got, expected) | |
48 | ||
49 | - libdir = os.path.join(destination, "lib", "python") | |
50 | + libdir = os.path.join(destination, "share", "python") | |
51 | platlibdir = os.path.join(destination, sys.lib, "python") | |
52 | check_path(cmd.install_lib, libdir) | |
53 | check_path(cmd.install_platlib, platlibdir) | |
73e32db0 JK |
54 | diff -dur Python-3.2.1.orig/Lib/site.py Python-3.2.1/Lib/site.py |
55 | --- Python-3.2.1.orig/Lib/site.py 2011-07-15 20:16:35.529557475 +0200 | |
56 | +++ Python-3.2.1/Lib/site.py 2011-07-15 20:17:09.134405059 +0200 | |
ac674191 | 57 | @@ -289,8 +289,7 @@ |
48e785bb JK |
58 | "python" + sys.version[:3], |
59 | "site-packages")) | |
60 | sitepackages.append(os.path.join(prefix, sys.lib, "site-python")) | |
61 | - if sys.lib != 'lib': | |
62 | - sitepackages.append(os.path.join(prefix, "lib", "python" + sys.version[:3], "site-packages")) | |
48e785bb | 63 | + sitepackages.append(os.path.join(prefix, "share", "python" + sys.version[:3], "site-packages")) |
48e785bb JK |
64 | else: |
65 | sitepackages.append(prefix) | |
66 | sitepackages.append(os.path.join(prefix, sys.lib, "site-packages")) | |
73e32db0 JK |
67 | diff -dur Python-3.2.1.orig/Lib/sysconfig.py Python-3.2.1/Lib/sysconfig.py |
68 | --- Python-3.2.1.orig/Lib/sysconfig.py 2011-07-15 20:16:35.532890958 +0200 | |
69 | +++ Python-3.2.1/Lib/sysconfig.py 2011-07-15 20:18:27.267925241 +0200 | |
70 | @@ -23,7 +23,7 @@ | |
71 | 'posix_prefix': { | |
72 | 'stdlib': '{base}/' + sys.lib + '/python{py_version_short}', | |
73 | 'platstdlib': '{platbase}/' + sys.lib + '/python{py_version_short}', | |
74 | - 'purelib': '{base}/lib/python{py_version_short}/site-packages', | |
75 | + 'purelib': '{base}/share/python{py_version_short}/site-packages', | |
76 | 'platlib': '{platbase}/' + sys.lib + '/python{py_version_short}/site-packages', | |
77 | 'include': | |
78 | '{base}/include/python{py_version_short}{abiflags}', | |
ac674191 AM |
79 | --- Python-3.5.0/configure.ac~ 2015-09-13 20:18:04.000000000 +0200 |
80 | +++ Python-3.5.0/configure.ac 2015-09-13 20:21:35.887422670 +0200 | |
81 | @@ -4370,7 +4370,7 @@ AC_MSG_RESULT($LDVERSION) | |
82 | ||
83 | dnl define LIBPL after ABIFLAGS and LDVERSION is defined. | |
84 | AC_SUBST(PY_ENABLE_SHARED) | |
85 | -LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" | |
86 | +LIBPL='$(LIBDIR)/python'"${VERSION}/config-${LDVERSION}" | |
87 | AC_SUBST(LIBPL) | |
88 | ||
89 | # Check whether right shifting a negative integer extends the sign bit | |
73e32db0 JK |
90 | diff -dur Python-3.2.1.orig/Makefile.pre.in Python-3.2.1/Makefile.pre.in |
91 | --- Python-3.2.1.orig/Makefile.pre.in 2011-07-15 20:16:35.532890958 +0200 | |
92 | +++ Python-3.2.1/Makefile.pre.in 2011-07-15 20:17:09.134405059 +0200 | |
48e785bb JK |
93 | @@ -108,7 +108,7 @@ |
94 | MANDIR= @mandir@ | |
95 | INCLUDEDIR= @includedir@ | |
96 | CONFINCLUDEDIR= $(exec_prefix)/include | |
97 | -SCRIPTDIR= $(prefix)/$(LIB) | |
98 | +SCRIPTDIR= $(prefix)/share | |
99 | ABIFLAGS= @ABIFLAGS@ | |
100 | ||
101 | # Detailed destination directories | |
48e785bb JK |
102 | @@ -1065,8 +1065,8 @@ |
103 | if test "$(SO)" = .dll; then \ | |
104 | $(INSTALL_DATA) $(LDLIBRARY) $(DESTDIR)$(LIBPL) ; \ | |
105 | else \ | |
106 | - $(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \ | |
107 | - $(RANLIB) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \ | |
108 | + $(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBDIR)/$(LIBRARY) ; \ | |
109 | + $(RANLIB) $(DESTDIR)$(LIBDIR)/$(LIBRARY) ; \ | |
110 | fi; \ | |
111 | else \ | |
112 | echo Skip install of $(LIBRARY) - use make frameworkinstall; \ | |
73e32db0 JK |
113 | diff -dur Python-3.2.1.orig/Modules/getpath.c Python-3.2.1/Modules/getpath.c |
114 | --- Python-3.2.1.orig/Modules/getpath.c 2011-07-15 20:16:35.536224442 +0200 | |
115 | +++ Python-3.2.1/Modules/getpath.c 2011-07-15 20:17:09.137738543 +0200 | |
e3852288 | 116 | @@ -131,7 +131,8 @@ |
e684db95 AM |
117 | |
118 | #ifndef PYTHONPATH | |
119 | #define PYTHONPATH PREFIX "/" LIB_PYTHON VERSION ":" \ | |
120 | - EXEC_PREFIX "/" LIB_PYTHON VERSION "/lib-dynload:" | |
121 | + EXEC_PREFIX "/" LIB_PYTHON VERSION "/lib-dynload:" \ | |
122 | + PREFIX "/share/python" VERSION | |
123 | #endif | |
124 | ||
125 | #ifndef LANDMARK | |
ac674191 | 126 | @@ -673,13 +674,13 @@ calculate_path(void) |
38874ce8 | 127 | } |
e684db95 | 128 | } |
38874ce8 AM |
129 | |
130 | - pfound = search_for_prefix(argv0_path, home, _prefix, lib_python); | |
cc48ca6b | 131 | + pfound = search_for_prefix(argv0_path, home, _prefix, L"share/python" VERSION); |
38874ce8 AM |
132 | if (!pfound) { |
133 | if (!Py_FrozenFlag) | |
e684db95 AM |
134 | fprintf(stderr, |
135 | "Could not find platform independent libraries <prefix>\n"); | |
e3852288 | 136 | wcsncpy(prefix, _prefix, MAXPATHLEN); |
e684db95 | 137 | - joinpath(prefix, lib_python); |
38874ce8 | 138 | + joinpath(prefix, L"share/python"); |
e684db95 AM |
139 | } |
140 | else | |
141 | reduce(prefix); | |
ac674191 | 142 | @@ -691,7 +692,7 @@ |
e684db95 AM |
143 | } |
144 | else | |
e3852288 | 145 | wcsncpy(zip_path, _prefix, MAXPATHLEN); |
f215c9da | 146 | - joinpath(zip_path, L"lib/python00.zip"); |
38874ce8 | 147 | + joinpath(zip_path, L"" LIB_PYTHON "00.zip"); |
e3852288 | 148 | bufsz = wcslen(zip_path); /* Replace "00" with version */ |
e684db95 AM |
149 | zip_path[bufsz - 6] = VERSION[0]; |
150 | zip_path[bufsz - 5] = VERSION[2]; |