summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
authorphillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771>2007-01-09 18:08:31 +0000
committerphillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771>2007-01-09 18:08:31 +0000
commit7b8f6723d15297fba68ad0ea95de6b24ab18d4b0 (patch)
treec78e6b97bf7b6a01a9ac5939c371aa9f038e2495 /setuptools/command
parenta8ed4af90503053c95c6028cfee2d79cf8e4045d (diff)
downloadpython-setuptools-7b8f6723d15297fba68ad0ea95de6b24ab18d4b0.tar.gz
Don't double-upload .exe files under Python 2.5. :(
git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@53309 6015fed2-1504-0410-9fe1-9d1591cc4771
Diffstat (limited to 'setuptools/command')
-rwxr-xr-xsetuptools/command/bdist_wininst.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/setuptools/command/bdist_wininst.py b/setuptools/command/bdist_wininst.py
index d2a8a4b..0e06106 100755
--- a/setuptools/command/bdist_wininst.py
+++ b/setuptools/command/bdist_wininst.py
@@ -2,24 +2,24 @@ from distutils.command.bdist_wininst import bdist_wininst as _bdist_wininst
import os
class bdist_wininst(_bdist_wininst):
-
- def create_exe(self, arcname, fullname, bitmap=None):
-
- _bdist_wininst.create_exe(self, arcname, fullname, bitmap)
-
- if self.target_version:
- installer_name = os.path.join(self.dist_dir,
- "%s.win32-py%s.exe" %
- (fullname, self.target_version))
- pyversion = self.target_version
- else:
- installer_name = os.path.join(self.dist_dir,
- "%s.win32.exe" % fullname)
- pyversion = 'any'
-
- getattr(self.distribution,'dist_files',[]).append(
- ('bdist_wininst', pyversion, installer_name)
- )
+ if sys.version<'2.5':
+ def create_exe(self, arcname, fullname, bitmap=None):
+
+ _bdist_wininst.create_exe(self, arcname, fullname, bitmap)
+
+ if self.target_version:
+ installer_name = os.path.join(self.dist_dir,
+ "%s.win32-py%s.exe" %
+ (fullname, self.target_version))
+ pyversion = self.target_version
+ else:
+ installer_name = os.path.join(self.dist_dir,
+ "%s.win32.exe" % fullname)
+ pyversion = 'any'
+
+ getattr(self.distribution,'dist_files',[]).append(
+ ('bdist_wininst', pyversion, installer_name)
+ )
def reinitialize_command (self, command, reinit_subcommands=0):
cmd = self.distribution.reinitialize_command(