Kaydet (Commit) d98d25e2 authored tarafından Thomas Heller's avatar Thomas Heller

Revert the previous checkin - it didn't work anyway.

üst 6e5680fc
......@@ -130,9 +130,8 @@ class bdist_wininst (Command):
# And make an archive relative to the root of the
# pseudo-installation tree.
from tempfile import NamedTemporaryFile
arc = NamedTemporaryFile(".zip")
archive_basename = arc.name[:-4]
from tempfile import mktemp
archive_basename = mktemp()
fullname = self.distribution.get_fullname()
arcname = self.make_archive(archive_basename, "zip",
root_dir=self.bdist_dir)
......@@ -140,7 +139,7 @@ class bdist_wininst (Command):
self.create_exe(arcname, fullname, self.bitmap)
# remove the zip-file again
log.debug("removing temporary file '%s'", arcname)
arc.close()
os.remove(arcname)
if not self.keep_temp:
remove_tree(self.bdist_dir, dry_run=self.dry_run)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment