summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2000-05-12 00:42:19 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2000-05-12 00:42:19 (GMT)
commitbb8c71d56370a97d2c9b5db0935475f1c99d422a (patch)
treee798c037935e0e2f25ce37e61037525d59d959ba /Lib/distutils
parent1426354cf649546a2437df75f2c319ff0b456c53 (diff)
downloadcpython-bb8c71d56370a97d2c9b5db0935475f1c99d422a.zip
cpython-bb8c71d56370a97d2c9b5db0935475f1c99d422a.tar.gz
cpython-bb8c71d56370a97d2c9b5db0935475f1c99d422a.tar.bz2
Call 'parse_config_files()' at the appropriate point.
Tweaked error-generating code.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/core.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py
index 4b69692..a39bccd 100644
--- a/Lib/distutils/core.py
+++ b/Lib/distutils/core.py
@@ -71,11 +71,11 @@ def setup (**attrs):
# (ie. everything except distclass) to initialize it
dist = klass (attrs)
- # If we had a config file, this is where we would parse it: override
- # the client-supplied command options, but be overridden by the
- # command line.
-
- # Parse the command line; any command-line errors are the end-users
+ # Find and parse the config file(s): they will override options from
+ # the setup script, but be overridden by the command line.
+ dist.parse_config_files()
+
+ # Parse the command line; any command-line errors are the end user's
# fault, so turn them into SystemExit to suppress tracebacks.
try:
ok = dist.parse_command_line (sys.argv[1:])
@@ -101,10 +101,10 @@ def setup (**attrs):
raise SystemExit, \
"error: %s" % exc.strerror
else:
- raise SystemExit, "error: " + exc[-1]
+ raise SystemExit, "error: " + str(exc[-1])
except (DistutilsExecError,
DistutilsFileError,
DistutilsOptionError), msg:
- raise SystemExit, "error: " + str (msg)
+ raise SystemExit, "error: " + str(msg)
# setup ()