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
fbb04c44
Commit
fbb04c44
authored
May 28, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only print debugging output if DEBUG (imported from distutils.core) is true.
parent
0eeebfda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
Lib/distutils/command/install.py
Lib/distutils/command/install.py
+15
-14
No files found.
Lib/distutils/command/install.py
View file @
fbb04c44
...
...
@@ -8,7 +8,7 @@ __revision__ = "$Id$"
import
sys
,
os
,
string
from
types
import
*
from
distutils.core
import
Command
from
distutils.core
import
Command
,
DEBUG
from
distutils
import
sysconfig
from
distutils.util
import
write_file
,
native_path
,
subst_vars
,
change_root
from
distutils.errors
import
DistutilsOptionError
...
...
@@ -240,9 +240,10 @@ class install (Command):
self
.
config_vars
[
'base'
]
=
self
.
install_base
self
.
config_vars
[
'platbase'
]
=
self
.
install_platbase
from
pprint
import
pprint
print
"config vars:"
pprint
(
self
.
config_vars
)
if
DEBUG
:
from
pprint
import
pprint
print
"config vars:"
pprint
(
self
.
config_vars
)
# Expand "~" and configuration variables in the installation
# directories.
...
...
@@ -289,17 +290,17 @@ class install (Command):
# finalize_options ()
# hack for debugging output
def
dump_dirs
(
self
,
msg
):
from
distutils.fancy_getopt
import
longopt_xlate
print
msg
+
":"
for
opt
in
self
.
user_options
:
opt_name
=
opt
[
0
]
if
opt_name
[
-
1
]
==
"="
:
opt_name
=
opt_name
[
0
:
-
1
]
opt_name
=
string
.
translate
(
opt_name
,
longopt_xlate
)
val
=
getattr
(
self
,
opt_name
)
print
" %s: %s"
%
(
opt_name
,
val
)
if
DEBUG
:
from
distutils.fancy_getopt
import
longopt_xlate
print
msg
+
":"
for
opt
in
self
.
user_options
:
opt_name
=
opt
[
0
]
if
opt_name
[
-
1
]
==
"="
:
opt_name
=
opt_name
[
0
:
-
1
]
opt_name
=
string
.
translate
(
opt_name
,
longopt_xlate
)
val
=
getattr
(
self
,
opt_name
)
print
" %s: %s"
%
(
opt_name
,
val
)
def
finalize_unix
(
self
):
...
...
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