[Python-checkins] python/dist/src/Lib/distutils/command bdist_wininst.py,1.35,1.36
theller@users.sourceforge.net
theller@users.sourceforge.net
Tue, 15 Oct 2002 07:52:02 -0700
Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory usw-pr-cvs1:/tmp/cvs-serv5080
Modified Files:
bdist_wininst.py
Log Message:
Revert the previous checkin - it didn't work anyway.
Index: bdist_wininst.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/bdist_wininst.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** bdist_wininst.py 9 Aug 2002 16:37:34 -0000 1.35
--- bdist_wininst.py 15 Oct 2002 14:51:58 -0000 1.36
***************
*** 131,137 ****
# 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]
fullname = self.distribution.get_fullname()
arcname = self.make_archive(archive_basename, "zip",
--- 131,136 ----
# And make an archive relative to the root of the
# pseudo-installation tree.
! from tempfile import mktemp
! archive_basename = mktemp()
fullname = self.distribution.get_fullname()
arcname = self.make_archive(archive_basename, "zip",
***************
*** 141,145 ****
# remove the zip-file again
log.debug("removing temporary file '%s'", arcname)
! arc.close()
if not self.keep_temp:
--- 140,144 ----
# remove the zip-file again
log.debug("removing temporary file '%s'", arcname)
! os.remove(arcname)
if not self.keep_temp: