summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-06-29 23:50:19 (GMT)
committerGreg Ward <gward@python.net>2000-06-29 23:50:19 (GMT)
commit5d6ae76c0925b9f0fce059f5372f633532535b67 (patch)
treec4afc35af69684612d4ff4fd98d474d96c2de7bd /Lib
parent29c08beab08ae3e8b9686a119f5cf0afe99ed918 (diff)
downloadcpython-5d6ae76c0925b9f0fce059f5372f633532535b67.zip
cpython-5d6ae76c0925b9f0fce059f5372f633532535b67.tar.gz
cpython-5d6ae76c0925b9f0fce059f5372f633532535b67.tar.bz2
Allow 2.0 on the list of target versions. NB. this isn't enough: the GUI part,
misc/install.c, still needs to be updated, and it looks like a non-trivial change.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/command/bdist_wininst.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py
index d3d1772..b81c4d4 100644
--- a/Lib/distutils/command/bdist_wininst.py
+++ b/Lib/distutils/command/bdist_wininst.py
@@ -27,7 +27,7 @@ class bdist_wininst (Command):
"compile to .pyo on the target system"),
('target-version=', 'v',
"require a specific python version" +
- " on the target system (1.5 or 1.6)"),
+ " on the target system (1.5 or 1.6/2.0)"),
]
def initialize_options (self):
@@ -47,9 +47,9 @@ class bdist_wininst (Command):
if not self.target_version:
self.target_version = ""
else:
- if not self.target_version in ("1.5", "1.6"):
+ if not self.target_version in ("1.5", "1.6", "2.0"):
raise DistutilsOptionError (
- "target version must be 1.5 or 1.6")
+ "target version must be 1.5, 1.6, or 2.0")
if self.distribution.has_ext_modules():
short_version = sys.version[:3]
if self.target_version and self.target_version != short_version:
@@ -74,8 +74,8 @@ class bdist_wininst (Command):
# The packager can choose if .pyc and .pyo files should be created
# on the TARGET system instead at the SOURCE system.
-## # The compilation can only be done on the SOURCE system
-## # for one python version (assuming 1.6 and 1.5 have incompatible
+## # The compilation can only be done on the SOURCE system for one
+## # python version (assuming 1.6/2.0 and 1.5 have incompatible
## # byte-codes).
## short_version = sys.version[:3]
## if self.target_version == short_version: