diff options
Diffstat (limited to 'setuptools/command')
| -rwxr-xr-x | setuptools/command/install_egg_info.py | 6 |
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) |
