Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f7a55074
Commit
f7a55074
authored
Jun 02, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Distribution method 'dump_option_dicts()' for debugging output, and only
do so if DEBUG is true.
parent
67392584
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Lib/distutils/core.py
Lib/distutils/core.py
+6
-6
No files found.
Lib/distutils/core.py
View file @
f7a55074
...
...
@@ -70,8 +70,6 @@ def setup (**attrs):
object.
"""
from
pprint
import
pprint
# for debugging output
# Determine the distribution class -- either caller-supplied or
# our Distribution (see below).
klass
=
attrs
.
get
(
'distclass'
)
...
...
@@ -88,8 +86,9 @@ def setup (**attrs):
# the setup script, but be overridden by the command line.
dist
.
parse_config_files
()
if
DEBUG
:
print
"options (after parsing config files):"
pprint
(
dist
.
command_options
)
dist
.
dump_option_dicts
(
)
# Parse the command line; any command-line errors are the end user's
# fault, so turn them into SystemExit to suppress tracebacks.
...
...
@@ -99,8 +98,9 @@ def setup (**attrs):
sys
.
stderr
.
write
(
usage
+
"
\
n
"
)
raise
SystemExit
,
"error: %s"
%
msg
if
DEBUG
:
print
"options (after parsing command line):"
pprint
(
dist
.
command_options
)
dist
.
dump_option_dicts
(
)
# And finally, run all the commands found on the command line.
if
ok
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment