diff options
| author | Andrey Bienkowski <hexagon-recursion@posteo.net> | 2022-03-05 15:20:42 +0300 |
|---|---|---|
| committer | Andrey Bienkowski <hexagon-recursion@posteo.net> | 2022-03-06 08:12:22 +0300 |
| commit | b828c32cd49f2281156644fce55d3c40663081dd (patch) | |
| tree | 7f9a7ecd8445bd267c8144a488aa734c051cd609 /setuptools/command | |
| parent | 45340d00688ba29fc3492c52c88c47d14ce918e6 (diff) | |
| download | python-setuptools-git-b828c32cd49f2281156644fce55d3c40663081dd.tar.gz | |
Fix editable --user installs with build isolation
https://github.com/pypa/setuptools/issues/3019
Diffstat (limited to 'setuptools/command')
| -rw-r--r-- | setuptools/command/easy_install.py | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 107850a9..940c916f 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() @@ -373,7 +367,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() |
