]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport akuchling's checkin of
authorMichael W. Hudson <mwh@python.net>
Mon, 25 Mar 2002 13:15:04 +0000 (13:15 +0000)
committerMichael W. Hudson <mwh@python.net>
Mon, 25 Mar 2002 13:15:04 +0000 (13:15 +0000)
    revision 1.62 of install.py

Add missing Boolean options
Remove unused no_compile flag
Initialize the Boolean attribute .compile to 0 instead of None

Bugfix candidate.

Lib/distutils/command/install.py

index 8755a1424a7228dfd44409f3caf1ba7323144529..ffc6e414569b61dc9e881919e75d7834fe3d59e8 100644 (file)
@@ -127,7 +127,7 @@ class install (Command):
          "filename in which to record list of installed files"),
         ]
 
-    boolean_options = ['force', 'skip-build']
+    boolean_options = ['compile', 'force', 'skip-build']
     negative_opt = {'no-compile' : 'compile'}
 
 
@@ -157,8 +157,7 @@ class install (Command):
         self.install_scripts = None
         self.install_data = None
 
-        self.compile = None
-        self.no_compile = None
+        self.compile = 0
         self.optimize = None
 
         # These two are for putting non-packagized distributions into their