diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-09-21 14:53:00 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-09-21 14:53:00 -0400 |
commit | da44ac095ad1a611959082df5e3f934772b5041c (patch) | |
tree | f9fa676ec0548a199e9bc22905332723e2d3deb3 | |
parent | 968d2984b116fe1c4e556ebd811ec0e0420307b3 (diff) | |
download | python-setuptools-git-da44ac095ad1a611959082df5e3f934772b5041c.tar.gz |
Remove 'unix_local' install scheme.
-rw-r--r-- | distutils/command/install.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/distutils/command/install.py b/distutils/command/install.py index 796d3791..b005c3a9 100644 --- a/distutils/command/install.py +++ b/distutils/command/install.py @@ -35,13 +35,6 @@ INSTALL_SCHEMES = { 'scripts': '$base/bin', 'data' : '$base', }, - 'unix_local': { - 'purelib': '$base/local/lib/python$py_version_short/site-packages', - 'platlib': '$platbase/local/$platlibdir/python$py_version_short/site-packages', - 'headers': '$base/local/include/python$py_version_short$abiflags/$dist_name', - 'scripts': '$base/local/bin', - 'data' : '$base/local', - }, 'unix_home': { 'purelib': '$base/lib/python', 'platlib': '$base/$platlibdir/python', @@ -425,16 +418,6 @@ class install(Command): except (ImportError, AttributeError): pass - def is_virtualenv(): - return ( - hasattr(sys, 'real_prefix') or - sys.prefix != sys.base_prefix or - 'VIRTUAL_ENV' in os.environ - ) - - if not is_virtualenv(): - schemes['unix_prefix'] = schemes['unix_local'] - # debian: def is_deb_system(): # TODO: how to solicit without an additional parameter to build? @@ -448,8 +431,6 @@ class install(Command): 'scripts': '$base/bin', 'data' : '$base', } - if not is_virtualenv(): - schemes['unix_prefix'] = schemes['unix_local'] return schemes |