summaryrefslogtreecommitdiff
path: root/debian/patches/distutils-install-layout.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-12-01 20:18:01 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-12-01 20:18:01 +0300
commit77d81aa4a3747b7dfbb17e43b16e1a514550c60c (patch)
tree0679778b3a5b46cb96d7c57485c847b83cc78bbf /debian/patches/distutils-install-layout.diff
parentc089c4500b0b78acf03ee5405ad250a84b0dfa66 (diff)
downloadpython3.8-debian.tar.gz
Import python3.8 (3.8.0-5)debian/3.8.0-5debian
Diffstat (limited to 'debian/patches/distutils-install-layout.diff')
-rw-r--r--debian/patches/distutils-install-layout.diff26
1 files changed, 21 insertions, 5 deletions
diff --git a/debian/patches/distutils-install-layout.diff b/debian/patches/distutils-install-layout.diff
index fbc6681..e8189b2 100644
--- a/debian/patches/distutils-install-layout.diff
+++ b/debian/patches/distutils-install-layout.diff
@@ -2,6 +2,8 @@
# DP: - installs into $prefix/dist-packages instead of $prefix/site-packages.
# DP: - doesn't encode the python version into the egg name.
+Index: b/Lib/distutils/command/install_egg_info.py
+===================================================================
--- a/Lib/distutils/command/install_egg_info.py
+++ b/Lib/distutils/command/install_egg_info.py
@@ -14,18 +14,38 @@ class install_egg_info(Command):
@@ -48,6 +50,8 @@
self.target = os.path.join(self.install_dir, basename)
self.outputs = [self.target]
+Index: b/Lib/distutils/command/install.py
+===================================================================
--- a/Lib/distutils/command/install.py
+++ b/Lib/distutils/command/install.py
@@ -35,6 +35,20 @@ INSTALL_SCHEMES = {
@@ -135,9 +139,11 @@
def finalize_other(self):
"""Finalizes options for non-posix platforms"""
+Index: b/Lib/distutils/sysconfig.py
+===================================================================
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
-@@ -140,6 +140,7 @@ def get_python_lib(plat_specific=0, stan
+@@ -139,6 +139,7 @@ def get_python_lib(plat_specific=0, stan
If 'prefix' is supplied, use it instead of sys.base_prefix or
sys.base_exec_prefix -- i.e., ignore 'plat_specific'.
"""
@@ -145,7 +151,7 @@
if prefix is None:
if standard_lib:
prefix = plat_specific and BASE_EXEC_PREFIX or BASE_PREFIX
-@@ -151,6 +152,12 @@ def get_python_lib(plat_specific=0, stan
+@@ -150,6 +151,12 @@ def get_python_lib(plat_specific=0, stan
"lib", "python" + get_python_version())
if standard_lib:
return libpython
@@ -158,6 +164,8 @@
else:
return os.path.join(libpython, "site-packages")
elif os.name == "nt":
+Index: b/Lib/site.py
+===================================================================
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -7,12 +7,18 @@
@@ -180,7 +188,7 @@
If a file named "pyvenv.cfg" exists one directory above sys.executable,
sys.prefix and sys.exec_prefix are set to that directory and
it is also checked for site-packages (sys.base_prefix and
-@@ -334,9 +340,20 @@ def getsitepackages(prefixes=None):
+@@ -335,9 +341,20 @@ def getsitepackages(prefixes=None):
seen.add(prefix)
if os.sep == '/':
@@ -203,9 +211,11 @@
else:
sitepackages.append(prefix)
sitepackages.append(os.path.join(prefix, "lib", "site-packages"))
+Index: b/Lib/test/test_site.py
+===================================================================
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
-@@ -269,10 +269,10 @@ class HelperFunctionsTests(unittest.Test
+@@ -266,10 +266,10 @@ class HelperFunctionsTests(unittest.Test
dirs = site.getsitepackages()
if os.sep == '/':
# OS X, Linux, FreeBSD, etc
@@ -219,6 +229,8 @@
self.assertEqual(dirs[0], wanted)
else:
# other platforms
+Index: b/Lib/distutils/tests/test_bdist_dumb.py
+===================================================================
--- a/Lib/distutils/tests/test_bdist_dumb.py
+++ b/Lib/distutils/tests/test_bdist_dumb.py
@@ -85,7 +85,7 @@ class BuildDumbTestCase(support.TempdirM
@@ -230,6 +242,8 @@
if not sys.dont_write_bytecode:
wanted.append('foo.%s.pyc' % sys.implementation.cache_tag)
self.assertEqual(contents, sorted(wanted))
+Index: b/Lib/distutils/tests/test_install.py
+===================================================================
--- a/Lib/distutils/tests/test_install.py
+++ b/Lib/distutils/tests/test_install.py
@@ -193,7 +193,7 @@ class InstallTestCase(support.TempdirMan
@@ -250,9 +264,11 @@
self.assertEqual(found, expected)
def test_debug_mode(self):
+Index: b/Lib/pydoc.py
+===================================================================
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
-@@ -420,6 +420,7 @@ class Doc:
+@@ -414,6 +414,7 @@ class Doc:
'marshal', 'posix', 'signal', 'sys',
'_thread', 'zipimport') or
(file.startswith(basedir) and