diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-14 10:34:44 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-14 10:34:44 -0400 |
commit | c0c0a82890bf8d06510f563aa3d01a69491ff86e (patch) | |
tree | f168737d80bd0193e34f8fbefb27dcb71dabe3b7 | |
parent | 888950096b1d4f6263a726b6cc1bef7a26bb67ef (diff) | |
download | external_python_setuptools-c0c0a82890bf8d06510f563aa3d01a69491ff86e.tar.gz external_python_setuptools-c0c0a82890bf8d06510f563aa3d01a69491ff86e.tar.bz2 external_python_setuptools-c0c0a82890bf8d06510f563aa3d01a69491ff86e.zip |
Normalize whitespace
-rwxr-xr-x | setuptools/command/develop.py | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/setuptools/command/develop.py b/setuptools/command/develop.py index 195ec412..74d12949 100755 --- a/setuptools/command/develop.py +++ b/setuptools/command/develop.py @@ -38,20 +38,14 @@ class develop(easy_install): self.setup_path = None self.always_copy_from = '.' # always copy eggs installed in curdir - - def finalize_options(self): ei = self.get_finalized_command("egg_info") if ei.broken_egg_info: - raise DistutilsError( - "Please rename %r to %r before using 'develop'" - % (ei.egg_info, ei.broken_egg_info) - ) + template = "Please rename %r to %r before using 'develop'" + args = ei.egg_info, ei.broken_egg_info + raise DistutilsError(template % args) self.args = [ei.egg_name] - - - easy_install.finalize_options(self) self.expand_basedirs() self.expand_dirs() @@ -64,11 +58,12 @@ class develop(easy_install): self.egg_path = os.path.abspath(ei.egg_base) target = normalize_path(self.egg_base) - if normalize_path(os.path.join(self.install_dir, self.egg_path)) != target: + egg_path = normalize_path(os.path.join(self.install_dir, self.egg_path)) + if egg_path != target: raise DistutilsOptionError( "--egg-path must be a relative path from the install" " directory to "+target - ) + ) # Make a distribution for the package's source self.dist = Distribution( @@ -82,7 +77,7 @@ class develop(easy_install): p = '../' * (p.count('/')+1) self.setup_path = p p = normalize_path(os.path.join(self.install_dir, self.egg_path, p)) - if p != normalize_path(os.curdir): + if p != normalize_path(os.curdir): raise DistutilsOptionError( "Can't get a consistent path to setup script from" " installation directory", p, normalize_path(os.curdir)) @@ -132,7 +127,6 @@ class develop(easy_install): # and handling requirements self.process_distribution(None, self.dist, not self.no_deps) - def uninstall_link(self): if os.path.exists(self.egg_link): log.info("Removing %s (link to %s)", self.egg_link, self.egg_base) |