summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/dist.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-01-15 16:09:35 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-01-15 16:09:35 (GMT)
commit3f819ec2edc54c8ccf0e6edb836a908ff6e31904 (patch)
tree45d3102b500ea6c2c02b5798ad1fe7d2149de6a7 /Lib/distutils/dist.py
parent8eb4b56828c9083ab91a8cfa0ac15fe9cb30f3cf (diff)
downloadcpython-3f819ec2edc54c8ccf0e6edb836a908ff6e31904.zip
cpython-3f819ec2edc54c8ccf0e6edb836a908ff6e31904.tar.gz
cpython-3f819ec2edc54c8ccf0e6edb836a908ff6e31904.tar.bz2
Fix from Jack Jansen for the Mac and the Metrowerks compiler, posted
to the Distutils-SIG and archived at http://mail.python.org/pipermail/distutils-sig/2000-November/001755.html
Diffstat (limited to 'Lib/distutils/dist.py')
-rw-r--r--Lib/distutils/dist.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py
index fe728c3..41d5dbb 100644
--- a/Lib/distutils/dist.py
+++ b/Lib/distutils/dist.py
@@ -172,12 +172,6 @@ class Distribution:
# operations, we just check the 'have_run' dictionary and carry on.
# It's only safe to query 'have_run' for a command class that has
# been instantiated -- a false value will be inserted when the
- if sys.platform == 'mac':
- import EasyDialogs
- cmdlist = self.get_command_list()
- self.script_args = EasyDialogs.GetArgv(
- self.global_options + self.display_options, cmdlist)
-
# command object is created, and replaced with a true value when
# the command is successfully run. Thus it's probably best to use
# '.get()' rather than a straight lookup.
@@ -375,6 +369,16 @@ class Distribution:
execute commands (currently, this only happens if user asks for
help).
"""
+ #
+ # We now have enough information to show the Macintosh dialog that allows
+ # the user to interactively specify the "command line".
+ #
+ if sys.platform == 'mac':
+ import EasyDialogs
+ cmdlist = self.get_command_list()
+ self.script_args = EasyDialogs.GetArgv(
+ self.global_options + self.display_options, cmdlist)
+
# We have to parse the command line a bit at a time -- global
# options, then the first command, then its options, and so on --
# because each command will be handled by a different class, and