mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Added the --dist-dir option that the "bdist_*" will use to control where
they place their output files.
This commit is contained in:
parent
c0614105aa
commit
040dc0b691
1 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue