summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-07-05 03:07:37 (GMT)
committerGreg Ward <gward@python.net>2000-07-05 03:07:37 (GMT)
commitc4eb84accb1ac1e09ea78bc3af81acdbe9499fb8 (patch)
treee94f3b50a7266a8785addc7112c33d16ea9775f0
parent040dc0b691dde643c1666acf8159afb6429df788 (diff)
downloadcpython-c4eb84accb1ac1e09ea78bc3af81acdbe9499fb8.zip
cpython-c4eb84accb1ac1e09ea78bc3af81acdbe9499fb8.tar.gz
cpython-c4eb84accb1ac1e09ea78bc3af81acdbe9499fb8.tar.bz2
Added --dist-dir option to control where output archive(s) go.
-rw-r--r--Lib/distutils/command/bdist_dumb.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/distutils/command/bdist_dumb.py b/Lib/distutils/command/bdist_dumb.py
index f9c81fc..805aa0a 100644
--- a/Lib/distutils/command/bdist_dumb.py
+++ b/Lib/distutils/command/bdist_dumb.py
@@ -24,6 +24,8 @@ class bdist_dumb (Command):
('keep-tree', 'k',
"keep the pseudo-installation tree around after " +
"creating the distribution archive"),
+ ('dist-dir=', 'd',
+ "directory to put final built distributions in"),
]
default_format = { 'posix': 'gztar',
@@ -34,6 +36,7 @@ class bdist_dumb (Command):
self.bdist_dir = None
self.format = None
self.keep_tree = 0
+ self.dist_dir = None
# initialize_options()
@@ -51,6 +54,8 @@ class bdist_dumb (Command):
("don't know how to create dumb built distributions " +
"on platform %s") % os.name
+ self.set_undefined_options('bdist', ('dist_dir', 'dist_dir'))
+
# finalize_options()
@@ -71,7 +76,8 @@ class bdist_dumb (Command):
get_platform())
print "self.bdist_dir = %s" % self.bdist_dir
print "self.format = %s" % self.format
- self.make_archive (archive_basename, self.format,
+ self.make_archive (os.path.join(self.dist_dir, archive_basename),
+ self.format,
root_dir=self.bdist_dir)
if not self.keep_tree: