diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-30 09:45:51 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-30 09:45:51 -0500 |
commit | 10197f6d76a56d358236ceb35435d3789d0fd2b0 (patch) | |
tree | 64f3a61d70c61dc3430a765af2c4171485ebc649 /setuptools/command/easy_install.py | |
parent | dbab8ae868d8b15d7082ee19bbd577140dea9652 (diff) | |
download | external_python_setuptools-10197f6d76a56d358236ceb35435d3789d0fd2b0.tar.gz external_python_setuptools-10197f6d76a56d358236ceb35435d3789d0fd2b0.tar.bz2 external_python_setuptools-10197f6d76a56d358236ceb35435d3789d0fd2b0.zip |
Extract variable for clarity of reading
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-x | setuptools/command/easy_install.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 125ceba2..1a2f56ae 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1549,10 +1549,14 @@ class PthDistributions(Environment): def add(self, dist): """Add `dist` to the distribution map""" - if (dist.location not in self.paths and ( - dist.location not in self.sitedirs or - dist.location == os.getcwd() # account for '.' being in PYTHONPATH - )): + new_path = ( + dist.location not in self.paths and ( + dist.location not in self.sitedirs or + # account for '.' being in PYTHONPATH + dist.location == os.getcwd() + ) + ) + if new_path: self.paths.append(dist.location) self.dirty = True Environment.add(self, dist) |