diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-08-19 19:36:06 +0100 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-08-19 19:36:06 +0100 |
commit | 9dc51a56c6133f2b115bc8133236e25cd2bb0a31 (patch) | |
tree | 49f8f4e59e86630678f05f89f5679cbfe6813ee9 /setuptools/command/easy_install.py | |
parent | 1f9c2b756ae6050e11d2dfde03a48df354fb0835 (diff) | |
download | external_python_setuptools-9dc51a56c6133f2b115bc8133236e25cd2bb0a31.tar.gz external_python_setuptools-9dc51a56c6133f2b115bc8133236e25cd2bb0a31.tar.bz2 external_python_setuptools-9dc51a56c6133f2b115bc8133236e25cd2bb0a31.zip |
Do join late
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-x | setuptools/command/easy_install.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index dfdd757e..4688cc42 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1530,9 +1530,8 @@ class PthDistributions(Environment): if not self.dirty: return - rel_paths = map(self.make_relative, self.paths) - data = '\n'.join(rel_paths) - if data: + rel_paths = list(map(self.make_relative, self.paths)) + if rel_paths: log.debug("Saving %s", self.filename) data = ( "import sys; sys.__plen = len(sys.path)\n" @@ -1541,7 +1540,7 @@ class PthDistributions(Environment): " del sys.path[sys.__plen:];" " p=getattr(sys,'__egginsert',0); sys.path[p:p]=new;" " sys.__egginsert = p+len(new)\n" - ) % data + ) % '\n'.join(rel_paths) if os.path.islink(self.filename): os.unlink(self.filename) |