aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/install.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2006-03-04 00:00:20 +0000
committerPJ Eby <distutils-sig@python.org>2006-03-04 00:00:20 +0000
commit087c9f1eb3e1b64b0d9cdb43d0946dd54d6885e5 (patch)
tree6aaffeac0ebc40de1fc2ec107167e6ddfcd8c786 /setuptools/command/install.py
parentdc66bc4eb7cd84ba849eea2c652f795bc243265f (diff)
downloadexternal_python_setuptools-087c9f1eb3e1b64b0d9cdb43d0946dd54d6885e5.tar.gz
external_python_setuptools-087c9f1eb3e1b64b0d9cdb43d0946dd54d6885e5.tar.bz2
external_python_setuptools-087c9f1eb3e1b64b0d9cdb43d0946dd54d6885e5.zip
Made ``--single-version-externally-managed`` automatic when ``--root`` is
used, so that most system packagers won't require special support for setuptools. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042823
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