[Python-checkins] distutils2: Finish renaming of some options, clarify old record option help

tarek.ziade python-checkins at python.org
Sun Aug 8 11:50:48 CEST 2010


tarek.ziade pushed f0e7bd08ac2f to distutils2:

http://hg.python.org/distutils2/rev/f0e7bd08ac2f
changeset:   509:f0e7bd08ac2f
user:        ?ric Araujo <merwok at netwok.org>
date:        Sat Aug 07 17:50:42 2010 +0200
summary:     Finish renaming of some options, clarify old record option help
files:       src/distutils2/command/install.py, src/distutils2/tests/test_install.py

diff --git a/src/distutils2/command/install.py b/src/distutils2/command/install.py
--- a/src/distutils2/command/install.py
+++ b/src/distutils2/command/install.py
@@ -77,8 +77,10 @@
         #('install-html=', None, "directory for HTML documentation"),
         #('install-info=', None, "directory for GNU info files"),
 
+        # XXX use a name that makes clear this is the old format
         ('record=', None,
-         "filename in which to record list of installed files"),
+         "filename in which to record a list of installed files "
+         "(not PEP 376-compliant)"),
 
         # .dist-info related arguments, read by install_dist_info
         ('no-distinfo', None, 'do not create a .dist-info directory'),
@@ -88,8 +90,8 @@
         ('no-record', None, 'do not generate a RECORD file'),
         ]
 
-    boolean_options = ['compile', 'force', 'skip-build', 'no-dist-info',
-                       'requested', 'no-dist-record',]
+    boolean_options = ['compile', 'force', 'skip-build', 'no-distinfo',
+                       'requested', 'no-record']
 
     user_options.append(('user', None,
                         "install in user site-package '%s'" % \
diff --git a/src/distutils2/tests/test_install.py b/src/distutils2/tests/test_install.py
--- a/src/distutils2/tests/test_install.py
+++ b/src/distutils2/tests/test_install.py
@@ -202,6 +202,9 @@
         finally:
             f.close()
 
+        # XXX test that fancy_getopt is okay with options named
+        # record and no-record but unrelated
+
     def _test_debug_mode(self):
         # this covers the code called when DEBUG is set
         old_logs_len = len(self.logs)

--
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list