summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/bdist_wininst.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-03-23 18:54:36 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-03-23 18:54:36 (GMT)
commit98da562600def4f3e2054ec52acff32f397aa096 (patch)
treee4e9d11f64ec766ddd8100995faa903a3c2f3ea7 /Lib/distutils/command/bdist_wininst.py
parentc8734a72576845731c145b96f6825126605976cc (diff)
downloadcpython-98da562600def4f3e2054ec52acff32f397aa096.zip
cpython-98da562600def4f3e2054ec52acff32f397aa096.tar.gz
cpython-98da562600def4f3e2054ec52acff32f397aa096.tar.bz2
Make dist_files a triple, with the Python target version included,
so that bdist_wininst can specify 'any'.
Diffstat (limited to 'Lib/distutils/command/bdist_wininst.py')
-rw-r--r--Lib/distutils/command/bdist_wininst.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py
index 5a83226..49afca0 100644
--- a/Lib/distutils/command/bdist_wininst.py
+++ b/Lib/distutils/command/bdist_wininst.py
@@ -162,7 +162,11 @@ class bdist_wininst (Command):
root_dir=self.bdist_dir)
# create an exe containing the zip-file
self.create_exe(arcname, fullname, self.bitmap)
- self.distribution.dist_files.append(('bdist_wininst',
+ if self.distribution.has_ext_modules():
+ pyversion = get_python_version()
+ else:
+ pyversion = 'any'
+ self.distribution.dist_files.append(('bdist_wininst', pyversion,
self.get_installer_filename(fullname)))
# remove the zip-file again
log.debug("removing temporary file '%s'", arcname)