Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3f1822b

Browse files
committed
Add missing Boolean options
Remove unused no_compile flag Initialize the Boolean attribute .compile to 0 instead of None Bugfix candidate.
1 parent da9f0bf commit 3f1822b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Lib/distutils/command/install.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class install (Command):
134134
"filename in which to record list of installed files"),
135135
]
136136

137-
boolean_options = ['force', 'skip-build']
137+
boolean_options = ['compile', 'force', 'skip-build']
138138
negative_opt = {'no-compile' : 'compile'}
139139

140140

@@ -164,8 +164,7 @@ def initialize_options (self):
164164
self.install_scripts = None
165165
self.install_data = None
166166

167-
self.compile = None
168-
self.no_compile = None
167+
self.compile = 0
169168
self.optimize = None
170169

171170
# These two are for putting non-packagized distributions into their

0 commit comments

Comments
 (0)