[Python-checkins] python/dist/src/Lib/distutils/command
bdist_wininst.py, 1.52, 1.53
theller at users.sourceforge.net
theller at users.sourceforge.net
Fri Jul 23 21:58:31 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10820
Modified Files:
bdist_wininst.py
Log Message:
Factored out a method to determine the final installer filename.
Index: bdist_wininst.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/bdist_wininst.py,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** bdist_wininst.py 23 Jul 2004 19:44:29 -0000 1.52
--- bdist_wininst.py 23 Jul 2004 19:58:28 -0000 1.53
***************
*** 225,237 ****
cfgdata = self.get_inidata()
! if self.target_version:
! # if we create an installer for a specific python version,
! # it's better to include this in the name
! installer_name = os.path.join(self.dist_dir,
! "%s.win32-py%s.exe" %
! (fullname, self.target_version))
! else:
! installer_name = os.path.join(self.dist_dir,
! "%s.win32.exe" % fullname)
self.announce("creating %s" % installer_name)
--- 225,229 ----
cfgdata = self.get_inidata()
! installer_name = self.get_installer_filename(fullname)
self.announce("creating %s" % installer_name)
***************
*** 281,284 ****
--- 273,289 ----
# create_exe()
+ def get_installer_filename(self, fullname):
+ # Factored out to allow overriding in subclasses
+ if self.target_version:
+ # if we create an installer for a specific python version,
+ # it's better to include this in the name
+ installer_name = os.path.join(self.dist_dir,
+ "%s.win32-py%s.exe" %
+ (fullname, self.target_version))
+ else:
+ installer_name = os.path.join(self.dist_dir,
+ "%s.win32.exe" % fullname)
+ # get_installer_filename()
+
def get_exe_bytes (self):
from distutils.msvccompiler import get_build_version
More information about the Python-checkins
mailing list