@@ -18,7 +18,7 @@ diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py
18
18
index 01d5331..81b501e 100644
19
19
--- a/Lib/distutils/command/install.py
20
20
+++ b/Lib/distutils/command/install.py
21
- @@ -33,13 +33,13 @@ SCHEME_KEYS = ('purelib', 'platlib', 'headers', 'scripts', 'data')
21
+ @@ -33,13 +33,13 @@
22
22
# alter locations for packages installations in a single place.
23
23
# Note that this module is deprecated (PEP 632); all consumers
24
24
# of this information should switch to using sysconfig directly.
@@ -44,15 +44,15 @@ index 01d5331..81b501e 100644
44
44
]
45
45
46
46
boolean_options = ['compile', 'force', 'skip-build']
47
- @@ -168,6 +171,7 @@ class install(Command ):
47
+ @@ -168,6 +171,7 @@ def initialize_options(self ):
48
48
self.exec_prefix = None
49
49
self.home = None
50
50
self.user = 0
51
51
+ self.prefix_option = None
52
52
53
53
# These select only the installation base; it's up to the user to
54
54
# specify the installation scheme (currently, that means supplying
55
- @@ -190,6 +194,9 @@ class install(Command ):
55
+ @@ -190,6 +194,9 @@ def initialize_options(self ):
56
56
self.install_userbase = USER_BASE
57
57
self.install_usersite = USER_SITE
58
58
@@ -62,15 +62,15 @@ index 01d5331..81b501e 100644
62
62
self.compile = None
63
63
self.optimize = None
64
64
65
- @@ -436,6 +443,7 @@ class install(Command ):
65
+ @@ -436,6 +443,7 @@ def finalize_unix(self ):
66
66
self.install_base = self.install_platbase = self.home
67
67
self.select_scheme("unix_home")
68
68
else:
69
69
+ self.prefix_option = self.prefix
70
70
if self.prefix is None:
71
71
if self.exec_prefix is not None:
72
72
raise DistutilsOptionError(
73
- @@ -450,7 +458,26 @@ class install(Command ):
73
+ @@ -450,7 +458,26 @@ def finalize_unix(self ):
74
74
75
75
self.install_base = self.prefix
76
76
self.install_platbase = self.exec_prefix
@@ -175,7 +175,7 @@ diff --git a/Lib/distutils/tests/test_bdist_dumb.py b/Lib/distutils/tests/test_b
175
175
index b41812b..95a49f4 100644
176
176
--- a/Lib/distutils/tests/test_bdist_dumb.py
177
177
+++ b/Lib/distutils/tests/test_bdist_dumb.py
178
- @@ -84,7 +84,7 @@ class BuildDumbTestCase(support.TempdirManager,
178
+ @@ -84,7 +84,7 @@ def test_simple_built(self):
179
179
fp.close()
180
180
181
181
contents = sorted(filter(None, map(os.path.basename, contents)))
@@ -188,7 +188,7 @@ diff --git a/Lib/distutils/tests/test_install.py b/Lib/distutils/tests/test_inst
188
188
index c30414d..eece987 100644
189
189
--- a/Lib/distutils/tests/test_install.py
190
190
+++ b/Lib/distutils/tests/test_install.py
191
- @@ -205,7 +205,7 @@ class InstallTestCase(support.TempdirManager,
191
+ @@ -205,7 +205,7 @@ def test_record(self):
192
192
found = [os.path.basename(line) for line in content.splitlines()]
193
193
expected = ['hello.py', 'hello.%s.pyc' % sys.implementation.cache_tag,
194
194
'sayhi',
@@ -197,7 +197,7 @@ index c30414d..eece987 100644
197
197
self.assertEqual(found, expected)
198
198
199
199
@requires_subprocess()
200
- @@ -239,7 +239,7 @@ class InstallTestCase(support.TempdirManager,
200
+ @@ -239,7 +239,7 @@ def test_record_extensions(self):
201
201
202
202
found = [os.path.basename(line) for line in content.splitlines()]
203
203
expected = [_make_ext_name('xx'),
@@ -210,7 +210,7 @@ diff --git a/Lib/pydoc.py b/Lib/pydoc.py
210
210
index 660b345..8a38c74 100755
211
211
--- a/Lib/pydoc.py
212
212
+++ b/Lib/pydoc.py
213
- @@ -527,6 +527,7 @@ class Doc :
213
+ @@ -527,6 +527,7 @@ def getdocloc(self, object, basedir=sysconfig.get_path('stdlib')) :
214
214
'marshal', 'posix', 'signal', 'sys',
215
215
'_thread', 'zipimport') or
216
216
(file.startswith(basedir) and
@@ -271,7 +271,7 @@ diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
271
271
index ebe3711..41a5ad6 100644
272
272
--- a/Lib/sysconfig.py
273
273
+++ b/Lib/sysconfig.py
274
- @@ -95,6 +95,30 @@ _INSTALL_SCHEMES = {
274
+ @@ -95,6 +95,30 @@
275
275
'scripts': '{base}/Scripts',
276
276
'data': '{base}',
277
277
},
@@ -338,7 +338,7 @@ diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
338
338
index 427f0b6..4b96486 100644
339
339
--- a/Lib/test/test_site.py
340
340
+++ b/Lib/test/test_site.py
341
- @@ -326,16 +326,16 @@ class HelperFunctionsTests(unittest.TestCase ):
341
+ @@ -326,16 +326,16 @@ def test_getsitepackages(self ):
342
342
if os.sep == '/':
343
343
# OS X, Linux, FreeBSD, etc
344
344
if sys.platlibdir != "lib":
0 commit comments