From 087c9f1eb3e1b64b0d9cdb43d0946dd54d6885e5 Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Sat, 4 Mar 2006 00:00:20 +0000 Subject: 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 --- setuptools/command/install.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'setuptools/command/install.py') 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 -- cgit v1.2.3