aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/install_egg_info.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-06-22 10:37:24 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-06-22 10:37:24 -0400
commit9d45f02e92ea875a88a964a629c0274d597f8d46 (patch)
treee62ffb0bfa930ceac9f0c09b7c9df6e29502d4b4 /setuptools/command/install_egg_info.py
parentc3f158dcc26b86008c7427674aec5ed100540280 (diff)
downloadexternal_python_setuptools-9d45f02e92ea875a88a964a629c0274d597f8d46.tar.gz
external_python_setuptools-9d45f02e92ea875a88a964a629c0274d597f8d46.tar.bz2
external_python_setuptools-9d45f02e92ea875a88a964a629c0274d597f8d46.zip
Always generate the lines, even in dry run.
--HG-- extra : amend_source : fa41c3fb787b667f703f67a52aed7a2958e615b4
Diffstat (limited to 'setuptools/command/install_egg_info.py')
-rwxr-xr-xsetuptools/command/install_egg_info.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/setuptools/command/install_egg_info.py b/setuptools/command/install_egg_info.py
index 3e413898..fd0f118b 100755
--- a/setuptools/command/install_egg_info.py
+++ b/setuptools/command/install_egg_info.py
@@ -68,11 +68,13 @@ class install_egg_info(Command):
filename += '-nspkg.pth'
self.outputs.append(filename)
log.info("Installing %s", filename)
+ lines = map(self._gen_nspkg_line, nsp)
+
if self.dry_run:
+ # always generate the lines, even in dry run
+ list(lines)
return
- lines = map(self._gen_nspkg_line, nsp)
-
with open(filename, 'wt') as f:
f.writelines(lines)