summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/bdist_dumb.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_dumb.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_dumb.py')
-rw-r--r--Lib/distutils/command/bdist_dumb.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/distutils/command/bdist_dumb.py b/Lib/distutils/command/bdist_dumb.py
index 5943551..ccba009 100644
--- a/Lib/distutils/command/bdist_dumb.py
+++ b/Lib/distutils/command/bdist_dumb.py
@@ -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)