summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-07-05 03:07:18 (GMT)
committerGreg Ward <gward@python.net>2000-07-05 03:07:18 (GMT)
commit040dc0b691dde643c1666acf8159afb6429df788 (patch)
treec0900ba98f20c7da2f9edeba06bec5ba32b4ee2c /Lib/distutils
parentc0614105aa0c57692da2d3a7354a5df4704ad70f (diff)
downloadcpython-040dc0b691dde643c1666acf8159afb6429df788.zip
cpython-040dc0b691dde643c1666acf8159afb6429df788.tar.gz
cpython-040dc0b691dde643c1666acf8159afb6429df788.tar.bz2
Added the --dist-dir option that the "bdist_*" will use to control where
they place their output files.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/bdist.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/distutils/command/bdist.py b/Lib/distutils/command/bdist.py
index 3fcbf77..100563a 100644
--- a/Lib/distutils/command/bdist.py
+++ b/Lib/distutils/command/bdist.py
@@ -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()