mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Make dist_files a triple, with the Python target version included,
so that bdist_wininst can specify 'any'.
This commit is contained in:
parent
c8734a7257
commit
98da562600
6 changed files with 38 additions and 14 deletions
|
|
@ -13,6 +13,7 @@ from distutils.core import Command
|
|||
from distutils.util import get_platform
|
||||
from distutils.dir_util import create_tree, remove_tree, ensure_relative
|
||||
from distutils.errors import *
|
||||
from distutils.sysconfig import get_python_version
|
||||
from distutils import log
|
||||
|
||||
class bdist_dumb (Command):
|
||||
|
|
@ -119,7 +120,12 @@ class bdist_dumb (Command):
|
|||
# Make the archive
|
||||
filename = self.make_archive(pseudoinstall_root,
|
||||
self.format, root_dir=archive_root)
|
||||
self.distribution.dist_files.append(('bdist_dumb', filename))
|
||||
if self.distribution.has_ext_modules():
|
||||
pyversion = get_python_version()
|
||||
else:
|
||||
pyversion = 'any'
|
||||
self.distribution.dist_files.append(('bdist_dumb', pyversion,
|
||||
filename))
|
||||
|
||||
if not self.keep_temp:
|
||||
remove_tree(self.bdist_dir, dry_run=self.dry_run)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue