]> granicus.if.org Git - python/commitdiff
Added the --dist-dir option that the "bdist_*" will use to control where
authorGreg Ward <gward@python.net>
Wed, 5 Jul 2000 03:07:18 +0000 (03:07 +0000)
committerGreg Ward <gward@python.net>
Wed, 5 Jul 2000 03:07:18 +0000 (03:07 +0000)
they place their output files.

Lib/distutils/command/bdist.py

index 3fcbf7793d44a6a83b41da07387f95b6fd5bb636..100563a9d16547705af9a38d472bb7727fbc69bc 100644 (file)
@@ -34,6 +34,9 @@ class bdist (Command):
                      "temporary directory for creating built distributions"),
                     ('formats=', None,
                      "formats for distribution (comma-separated list)"),
+                    ('dist-dir=', 'd',
+                     "directory to put final built distributions in "
+                     "[default: dist]"),
                    ]
 
     help_options = [
@@ -65,6 +68,7 @@ class bdist (Command):
     def initialize_options (self):
         self.bdist_base = None
         self.formats = None
+        self.dist_dir = None
 
     # initialize_options()
 
@@ -86,6 +90,9 @@ class bdist (Command):
                 raise DistutilsPlatformError, \
                       "don't know how to create built distributions " + \
                       "on platform %s" % os.name
+
+        if self.dist_dir is None:
+            self.dist_dir = "dist"
             
     # finalize_options()