diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2005-03-23 18:54:36 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2005-03-23 18:54:36 (GMT) |
commit | 98da562600def4f3e2054ec52acff32f397aa096 (patch) | |
tree | e4e9d11f64ec766ddd8100995faa903a3c2f3ea7 /Lib/distutils/command/bdist_wininst.py | |
parent | c8734a72576845731c145b96f6825126605976cc (diff) | |
download | cpython-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.py | 6 |
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) |