diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-09-21 14:54:59 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-09-21 14:55:25 -0400 |
commit | dcafd577d3bc0a5a87e3278d976bea0ca4b43084 (patch) | |
tree | d737588cdbab5f5c923c05999d372a693b8a97a1 | |
parent | da44ac095ad1a611959082df5e3f934772b5041c (diff) | |
download | python-setuptools-git-dcafd577d3bc0a5a87e3278d976bea0ca4b43084.tar.gz |
Remove special casing for Debian. Instead, Debian should make sure the schemes are updated in sysconfig.
-rw-r--r-- | distutils/command/install.py | 17 |
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): |