summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.txt2
-rwxr-xr-xsetuptools/command/install_egg_info.py6
2 files changed, 6 insertions, 2 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 27c425a9..829a3705 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -11,6 +11,8 @@ CHANGES
documentation.
* Some code refactoring and cleanup was done with no intended behavioral
changes.
+* During install_egg_info, the generated lines for namespace package .pth
+ files are now processed even during a dry run.
---
5.1
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)