aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/install.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command/install.py')
-rw-r--r--setuptools/command/install.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/command/install.py b/setuptools/command/install.py
index 55321256..d8da70c9 100644
--- a/setuptools/command/install.py
+++ b/setuptools/command/install.py
@@ -30,15 +30,15 @@ class install(_install):
def finalize_options(self):
_install.finalize_options(self)
- if self.single_version_externally_managed:
+ if self.root:
+ self.single_version_externally_managed = True
+ elif self.single_version_externally_managed:
if not self.root and not self.record:
raise DistutilsArgError(
"You must specify --record or --root when building system"
" packages"
)
-
-
def handle_extra_path(self):
# We always ignore extra_path, because we install as .egg or .egg-info
self.path_file = None