Skip to content

Commit 99b032e

Browse files
committed
Added 'boolean_options' list to support config file parsing.
1 parent 817dc09 commit 99b032e

15 files changed

Lines changed: 31 additions & 0 deletions

Lib/distutils/command/bdist_dumb.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ class bdist_dumb (Command):
3232
"directory to put final built distributions in"),
3333
]
3434

35+
boolean_options = ['keep-temp']
36+
3537
default_format = { 'posix': 'gztar',
3638
'nt': 'zip', }
3739

Lib/distutils/command/bdist_rpm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ class bdist_rpm (Command):
111111
"RPM 2 compatibility mode"),
112112
]
113113

114+
boolean_options = ['keep-temp', 'rpm2-mode']
115+
114116
negative_opt = {'no-keep-temp': 'keep-temp',
115117
'no-rpm-opt-flags': 'use-rpm-opt-flags',
116118
'rpm2-mode': 'rpm3-mode'}

Lib/distutils/command/bdist_wininst.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class bdist_wininst (Command):
3333
"directory to put final built distributions in"),
3434
]
3535

36+
boolean_options = ['keep-temp']
37+
3638
def initialize_options (self):
3739
self.bdist_dir = None
3840
self.keep_temp = 0

Lib/distutils/command/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ class build (Command):
4242
"forcibly build everything (ignore file timestamps)"),
4343
]
4444

45+
boolean_options = ['debug', 'force']
46+
4547
help_options = [
4648
('help-compiler', None,
4749
"list available compilers", show_compilers),

Lib/distutils/command/build_clib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ class build_clib (Command):
4848
"specify the compiler type"),
4949
]
5050

51+
boolean_options = ['debug', 'force']
52+
5153
help_options = [
5254
('help-compiler', None,
5355
"list available compilers", show_compilers),

Lib/distutils/command/build_ext.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ class build_ext (Command):
8282
"make SWIG create C++ files (default is C)"),
8383
]
8484

85+
boolean_options = ['inplace', 'debug', 'force', 'swig-cpp']
86+
8587
help_options = [
8688
('help-compiler', None,
8789
"list available compilers", show_compilers),

Lib/distutils/command/build_py.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class build_py (Command):
2323
('force', 'f', "forcibly build everything (ignore file timestamps)"),
2424
]
2525

26+
boolean_options = ['force']
27+
2628

2729
def initialize_options (self):
2830
self.build_lib = None

Lib/distutils/command/build_scripts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class build_scripts (Command):
2222
('force', 'f', "forcibly build everything (ignore file timestamps"),
2323
]
2424

25+
boolean_options = ['force']
26+
2527

2628
def initialize_options (self):
2729
self.build_dir = None

Lib/distutils/command/clean.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class clean (Command):
2828
"remove all build output, not just temporary by-products")
2929
]
3030

31+
boolean_options = ['all']
32+
3133
def initialize_options(self):
3234
self.build_base = None
3335
self.build_lib = None

Lib/distutils/command/install.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ class install (Command):
106106
"filename in which to record list of installed files"),
107107
]
108108

109+
boolean_options = ['force', 'skip-build']
110+
109111

110112
def initialize_options (self):
111113

0 commit comments

Comments
 (0)