Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
2bd3f425
Kaydet (Commit)
2bd3f425
authored
Haz 02, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Only print debugging output if DEBUG true (and deleted some of the more
extraneous debug prints).
üst
f7a55074
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
dist.py
Lib/distutils/dist.py
+7
-6
No files found.
Lib/distutils/dist.py
Dosyayı görüntüle @
2bd3f425
...
...
@@ -294,15 +294,16 @@ class Distribution:
def
parse_config_files
(
self
,
filenames
=
None
):
from
ConfigParser
import
ConfigParser
from
distutils.core
import
DEBUG
if
filenames
is
None
:
filenames
=
self
.
find_config_files
()
print
"Distribution.parse_config_files():"
if
DEBUG
:
print
"Distribution.parse_config_files():"
parser
=
ConfigParser
()
for
filename
in
filenames
:
print
" reading"
,
filename
if
DEBUG
:
print
" reading"
,
filename
parser
.
read
(
filename
)
for
section
in
parser
.
sections
():
options
=
parser
.
options
(
section
)
...
...
@@ -370,7 +371,6 @@ class Distribution:
# latter, we omit the display-only options and show help for
# each command listed on the command line.
if
self
.
help
:
print
"showing 'global' help; commands="
,
self
.
commands
self
.
_show_help
(
parser
,
display_options
=
len
(
self
.
commands
)
==
0
,
commands
=
self
.
commands
)
...
...
@@ -440,7 +440,6 @@ class Distribution:
parser
.
set_negative_aliases
(
negative_opt
)
(
args
,
opts
)
=
parser
.
getopt
(
args
[
1
:])
if
hasattr
(
opts
,
'help'
)
and
opts
.
help
:
print
"showing help for command"
,
cmd_class
self
.
_show_help
(
parser
,
display_options
=
0
,
commands
=
[
cmd_class
])
return
...
...
@@ -643,10 +642,12 @@ class Distribution:
object for 'command' is in the cache, then we either create and
return it (if 'create' is true) or return None.
"""
from
distutils.core
import
DEBUG
cmd_obj
=
self
.
command_obj
.
get
(
command
)
if
not
cmd_obj
and
create
:
print
"Distribution.get_command_obj(): "
\
"creating '
%
s' command object"
%
command
if
DEBUG
:
print
"Distribution.get_command_obj(): "
\
"creating '
%
s' command object"
%
command
klass
=
self
.
get_command_class
(
command
)
cmd_obj
=
self
.
command_obj
[
command
]
=
klass
(
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