diff options
| author | Greg Ward <gward@python.net> | 2000-09-11 00:47:35 +0000 |
|---|---|---|
| committer | Greg Ward <gward@python.net> | 2000-09-11 00:47:35 +0000 |
| commit | 9a1e68da5031587d22fa58f20a36e3d12f76a9aa (patch) | |
| tree | d9031bbfb53199520b27653f6f151543da13f683 /command/bdist_dumb.py | |
| parent | cde132acfb8b07bd59966d7392c82c4fb2de2b2b (diff) | |
| download | python-setuptools-git-9a1e68da5031587d22fa58f20a36e3d12f76a9aa.tar.gz | |
Added --plat-name option to override sysconfig.get_platform() in
generated filenames.
Diffstat (limited to 'command/bdist_dumb.py')
| -rw-r--r-- | command/bdist_dumb.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/command/bdist_dumb.py b/command/bdist_dumb.py index e93c6b72..0fb8e83b 100644 --- a/command/bdist_dumb.py +++ b/command/bdist_dumb.py @@ -20,6 +20,9 @@ class bdist_dumb (Command): user_options = [('bdist-dir=', 'd', "temporary directory for creating the distribution"), + ('plat-name=', 'p', + "platform name to embed in generated filenames " + "(default: %s)" % get_platform()), ('format=', 'f', "archive format to create (tar, ztar, gztar, zip)"), ('keep-tree', 'k', @@ -35,6 +38,7 @@ class bdist_dumb (Command): def initialize_options (self): self.bdist_dir = None + self.plat_name = None self.format = None self.keep_tree = 0 self.dist_dir = None @@ -43,6 +47,7 @@ class bdist_dumb (Command): def finalize_options (self): + if self.bdist_dir is None: bdist_base = self.get_finalized_command('bdist').bdist_base self.bdist_dir = os.path.join(bdist_base, 'dumb') @@ -55,7 +60,9 @@ 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')) + self.set_undefined_options('bdist', + ('dist_dir', 'dist_dir'), + ('plat_name', 'plat_name')) # finalize_options() @@ -74,7 +81,7 @@ class bdist_dumb (Command): # And make an archive relative to the root of the # pseudo-installation tree. archive_basename = "%s.%s" % (self.distribution.get_fullname(), - get_platform()) + self.plat_name) print "self.bdist_dir = %s" % self.bdist_dir print "self.format = %s" % self.format self.make_archive (os.path.join(self.dist_dir, archive_basename), |
