]> granicus.if.org Git - python/commitdiff
Added 'boolean_options' list to support config file parsing.
authorGreg Ward <gward@python.net>
Mon, 25 Sep 2000 01:41:15 +0000 (01:41 +0000)
committerGreg Ward <gward@python.net>
Mon, 25 Sep 2000 01:41:15 +0000 (01:41 +0000)
15 files changed:
Lib/distutils/command/bdist_dumb.py
Lib/distutils/command/bdist_rpm.py
Lib/distutils/command/bdist_wininst.py
Lib/distutils/command/build.py
Lib/distutils/command/build_clib.py
Lib/distutils/command/build_ext.py
Lib/distutils/command/build_py.py
Lib/distutils/command/build_scripts.py
Lib/distutils/command/clean.py
Lib/distutils/command/install.py
Lib/distutils/command/install_data.py
Lib/distutils/command/install_headers.py
Lib/distutils/command/install_lib.py
Lib/distutils/command/install_scripts.py
Lib/distutils/command/sdist.py

index 1fdbf4253b04089a4fd399b7a9de69282e73d9d5..520098db19f764e9dae9d9b716924d19679fc11a 100644 (file)
@@ -32,6 +32,8 @@ class bdist_dumb (Command):
                      "directory to put final built distributions in"),
                    ]
 
+    boolean_options = ['keep-temp']
+
     default_format = { 'posix': 'gztar',
                        'nt': 'zip', }
 
index 2afc7146701b8d17985fc4d80c44bf023bb7d8ef..d585e8c660abb373590501b3f8a8e0328d629365 100644 (file)
@@ -111,6 +111,8 @@ class bdist_rpm (Command):
          "RPM 2 compatibility mode"),
        ]
 
+    boolean_options = ['keep-temp', 'rpm2-mode']
+
     negative_opt = {'no-keep-temp': 'keep-temp',
                     'no-rpm-opt-flags': 'use-rpm-opt-flags',
                     'rpm2-mode': 'rpm3-mode'}
index b4c6d9b4b6f95b2a9cce4ce3b7a821b2dca77fdc..16dd8022a02dad4bd756d7d66d45f8c0a13ef9dc 100644 (file)
@@ -33,6 +33,8 @@ class bdist_wininst (Command):
                      "directory to put final built distributions in"),
                    ]
 
+    boolean_options = ['keep-temp']
+
     def initialize_options (self):
         self.bdist_dir = None
         self.keep_temp = 0
index 15476ca11b60b9cc0ebac28b475a546bcae7201b..f30f4ee1da4b0853735fc7ed052b4d7e508cd692 100644 (file)
@@ -42,6 +42,8 @@ class build (Command):
          "forcibly build everything (ignore file timestamps)"),
         ]
 
+    boolean_options = ['debug', 'force']
+
     help_options = [
         ('help-compiler', None,
          "list available compilers", show_compilers),
index 450dae1754f38aa1979876a246636dcf36934bba..775b7ade5a39e7f58cde107a107d3eb8e5e428d0 100644 (file)
@@ -48,6 +48,8 @@ class build_clib (Command):
          "specify the compiler type"),
         ]
 
+    boolean_options = ['debug', 'force']
+
     help_options = [
         ('help-compiler', None,
          "list available compilers", show_compilers),
index d578b846aca370613142ce082e9c6381dccda684..7fdfd1458db247d2b2e88bebaaf590361e93655f 100644 (file)
@@ -82,6 +82,8 @@ class build_ext (Command):
          "make SWIG create C++ files (default is C)"),
         ]
 
+    boolean_options = ['inplace', 'debug', 'force', 'swig-cpp']
+
     help_options = [
         ('help-compiler', None,
          "list available compilers", show_compilers),
index 5fcd18e788390e2ec2f4f375ab731e578aa1ae77..ea92c2be0f2cef8b1226da538082329772008bb7 100644 (file)
@@ -23,6 +23,8 @@ class build_py (Command):
         ('force', 'f', "forcibly build everything (ignore file timestamps)"),
         ]
 
+    boolean_options = ['force']
+
 
     def initialize_options (self):
         self.build_lib = None
index 17fae8f7b55dc9772a889bd88f3c23ca2c7a4f7c..eacf798996e9ec196c5c67f4bedec7fff2e3e65a 100644 (file)
@@ -22,6 +22,8 @@ class build_scripts (Command):
         ('force', 'f', "forcibly build everything (ignore file timestamps"),
         ]
 
+    boolean_options = ['force']
+
 
     def initialize_options (self):
         self.build_dir = None
index 2f3597fdbcaabcd81e74d994e78b0f48712816af..4f04f08be523b83eef41eabf64d94b51473dbdf0 100644 (file)
@@ -28,6 +28,8 @@ class clean (Command):
          "remove all build output, not just temporary by-products")
     ]
 
+    boolean_options = ['all']
+
     def initialize_options(self):
         self.build_base = None
         self.build_lib = None
index 573e0740eba3afb46212ce8a6ac71c369567b8d4..4ad652d990812abbc2467808978cf4ce8d6a180e 100644 (file)
@@ -106,6 +106,8 @@ class install (Command):
          "filename in which to record list of installed files"),
         ]
 
+    boolean_options = ['force', 'skip-build']
+
 
     def initialize_options (self):
 
index af348f5190c1de191bbf7d2939bc20f8d5547c00..9ce118394b6b73a8098578d7feacdb50a737e0cd 100644 (file)
@@ -25,6 +25,8 @@ class install_data (Command):
         ('force', 'f', "force installation (overwrite existing files)"),
         ]
 
+    boolean_options = ['force']
+
     def initialize_options (self):
         self.install_dir = None
         self.outfiles = []
index 5c06d574d61f80331aa06abc943908a73794f2b1..ec0cf4412ddff6f6588272b0a48af85d10a13a5e 100644 (file)
@@ -21,6 +21,7 @@ class install_headers (Command):
                      "force installation (overwrite existing files)"),
                    ]
 
+    boolean_options = ['force']
 
     def initialize_options (self):
         self.install_dir = None
index b104fa9cfcca0a472238c2e1dc00feb55c9088ca..a603b4f59ee30fb1afa7eade570b9077ebdd0690 100644 (file)
@@ -19,6 +19,8 @@ class install_lib (Command):
         ('skip-build', None, "skip the build steps"),
         ]
                
+    boolean_options = ['force', 'compile', 'optimize', 'skip-build']
+
 
     def initialize_options (self):
         # let the 'install' command dictate our installation directory
index d506f90f5110e8525cef23bf478b6ca547f89a77..b8938c48de942311c164c63a4ef7f334f77630ef 100644 (file)
@@ -22,6 +22,9 @@ class install_scripts (Command):
         ('skip-build', None, "skip the build steps"),
     ]
 
+    boolean_options = ['force', 'skip-build']
+
+
     def initialize_options (self):
         self.install_dir = None
         self.force = 0
index 9b9f6064c516c568d2b9b09aa812596f386f7e91..ec443a30680f24f31fe4c7f7d9be981e57883165 100644 (file)
@@ -67,6 +67,9 @@ class sdist (Command):
          "[default: dist]"),
         ]
 
+    boolean_options = ['use-defaults', 'prune',
+                       'manifest-only', 'force-manifest',
+                       'keep-tree']
 
     help_options = [
         ('help-formats', None,