summaryrefslogtreecommitdiff
path: root/distutils/command/install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-09-21 14:54:59 -0400
committerJason R. Coombs <jaraco@jaraco.com>2021-09-21 14:55:25 -0400
commitdcafd577d3bc0a5a87e3278d976bea0ca4b43084 (patch)
treed737588cdbab5f5c923c05999d372a693b8a97a1 /distutils/command/install.py
parentda44ac095ad1a611959082df5e3f934772b5041c (diff)
downloadpython-setuptools-git-dcafd577d3bc0a5a87e3278d976bea0ca4b43084.tar.gz
Remove special casing for Debian. Instead, Debian should make sure the schemes are updated in sysconfig.
Diffstat (limited to 'distutils/command/install.py')
-rw-r--r--distutils/command/install.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/distutils/command/install.py b/distutils/command/install.py
index b005c3a9..848388bb 100644
--- a/distutils/command/install.py
+++ b/distutils/command/install.py
@@ -406,7 +406,7 @@ class install(Command):
def _load_schemes(self):
"""
- Allow sysconfig and runtime behaviors to alter schemes.
+ Allow sysconfig to alter schemes.
"""
schemes = dict(INSTALL_SCHEMES)
@@ -414,24 +414,9 @@ class install(Command):
try:
import sysconfig
schemes.update(sysconfig.INSTALL_SCHEMES)
- return schemes
except (ImportError, AttributeError):
pass
- # debian:
- def is_deb_system():
- # TODO: how to solicit without an additional parameter to build?
- return self.install_layout.lower() == 'deb'
-
- if is_deb_system():
- schemes['unix_prefix'] = {
- 'purelib': '$base/lib/python3/dist-packages',
- 'platlib': '$platbase/lib/python3/dist-packages',
- 'headers': '$base/include/python$py_version_short/$dist_name',
- 'scripts': '$base/bin',
- 'data' : '$base',
- }
-
return schemes
def finalize_unix(self):