Add missing Boolean options
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 21 Mar 2002 23:46:54 +0000 (23:46 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 21 Mar 2002 23:46:54 +0000 (23:46 +0000)
Remove unused no_compile flag
Initialize the Boolean attribute .compile to 0 instead of None

Bugfix candidate.

Lib/distutils/command/install.py

index 4d78d3aa6fbcd4b2d334d23ae29a6fb472be8fcf..2a18fb9dee1a009de9c42ba46fa7fb28d1339a47 100644 (file)
@@ -134,7 +134,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'}
 
 
@@ -164,8 +164,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