mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Revert the previous checkin - it didn't work anyway.
This commit is contained in:
parent
6e5680fc83
commit
d98d25e22d
1 changed files with 3 additions and 4 deletions
|
@ -130,9 +130,8 @@ class bdist_wininst (Command):
|
||||||
|
|
||||||
# And make an archive relative to the root of the
|
# And make an archive relative to the root of the
|
||||||
# pseudo-installation tree.
|
# pseudo-installation tree.
|
||||||
from tempfile import NamedTemporaryFile
|
from tempfile import mktemp
|
||||||
arc = NamedTemporaryFile(".zip")
|
archive_basename = mktemp()
|
||||||
archive_basename = arc.name[:-4]
|
|
||||||
fullname = self.distribution.get_fullname()
|
fullname = self.distribution.get_fullname()
|
||||||
arcname = self.make_archive(archive_basename, "zip",
|
arcname = self.make_archive(archive_basename, "zip",
|
||||||
root_dir=self.bdist_dir)
|
root_dir=self.bdist_dir)
|
||||||
|
@ -140,7 +139,7 @@ class bdist_wininst (Command):
|
||||||
self.create_exe(arcname, fullname, self.bitmap)
|
self.create_exe(arcname, fullname, self.bitmap)
|
||||||
# remove the zip-file again
|
# remove the zip-file again
|
||||||
log.debug("removing temporary file '%s'", arcname)
|
log.debug("removing temporary file '%s'", arcname)
|
||||||
arc.close()
|
os.remove(arcname)
|
||||||
|
|
||||||
if not self.keep_temp:
|
if not self.keep_temp:
|
||||||
remove_tree(self.bdist_dir, dry_run=self.dry_run)
|
remove_tree(self.bdist_dir, dry_run=self.dry_run)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue