mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix usage of dry-run in packaging bdist_wininst and install_distinfo.
In dry-run mode, packaging commands should log the same info as in real operation and should collect the same files in self.outputs, so that users can run a command in verbose and dry-run mode to see exactly what operations will be done in the real run.
This commit is contained in:
parent
e6db7a3a29
commit
c8f9c81cfa
2 changed files with 38 additions and 39 deletions
|
@ -186,9 +186,8 @@ class bdist_wininst(Command):
|
|||
os.remove(arcname)
|
||||
|
||||
if not self.keep_temp:
|
||||
if self.dry_run:
|
||||
logger.info('removing %s', self.bdist_dir)
|
||||
else:
|
||||
logger.info('removing %s', self.bdist_dir)
|
||||
if not self.dry_run:
|
||||
rmtree(self.bdist_dir)
|
||||
|
||||
def get_inidata(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue