From 5d6ae76c0925b9f0fce059f5372f633532535b67 Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Thu, 29 Jun 2000 23:50:19 +0000 Subject: 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. --- Lib/distutils/command/bdist_wininst.py | 10 +++++----- 1 file 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: -- cgit v0.12