summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-04-03 16:26:57 -0400
committerGitHub <noreply@github.com>2022-04-03 16:26:57 -0400
commitfd632dfb65e3e72b91f9e0e6002bc581806b4e59 (patch)
treed94c0ec52aa46c2cc804226ab489a47aa0737767 /setuptools/command
parentb58bdcad0513a4a2ff2c70b1b152fd565960a34f (diff)
parentc2f4907fcdec3b8a68e595ee9b9fc57103992ce2 (diff)
downloadpython-setuptools-git-fd632dfb65e3e72b91f9e0e6002bc581806b4e59.tar.gz
Merge pull request #3151 from hexagonrecursion/fix-editable
Fix editable --user installs with build isolation
Diffstat (limited to 'setuptools/command')
-rw-r--r--setuptools/command/easy_install.py18
1 files changed, 6 insertions, 12 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 77dcd25c..444d3b33 100644
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -169,12 +169,8 @@ class easy_install(Command):
self.install_data = None
self.install_base = None
self.install_platbase = None
- if site.ENABLE_USER_SITE:
- self.install_userbase = site.USER_BASE
- self.install_usersite = site.USER_SITE
- else:
- self.install_userbase = None
- self.install_usersite = None
+ self.install_userbase = site.USER_BASE
+ self.install_usersite = site.USER_SITE
self.no_find_links = None
# Options not specifiable via command line
@@ -253,11 +249,9 @@ class easy_install(Command):
getattr(sys, 'windir', '').replace('.', ''),
)
- if site.ENABLE_USER_SITE:
- self.config_vars['userbase'] = self.install_userbase
- self.config_vars['usersite'] = self.install_usersite
-
- elif self.user:
+ self.config_vars['userbase'] = self.install_userbase
+ self.config_vars['usersite'] = self.install_usersite
+ if self.user and not site.ENABLE_USER_SITE:
log.warn("WARNING: The user site-packages directory is disabled.")
self._fix_install_dir_for_user_site()
@@ -375,7 +369,7 @@ class easy_install(Command):
"""
Fix the install_dir if "--user" was used.
"""
- if not self.user or not site.ENABLE_USER_SITE:
+ if not self.user:
return
self.create_home_path()