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
65d6edb4
Kaydet (Commit)
65d6edb4
authored
Tem 07, 2000
tarafından
Jeremy Hylton
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix inconsistent use of tabs and spaces
üst
bc30b117
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
24 deletions
+24
-24
ccompiler.py
Lib/distutils/ccompiler.py
+1
-1
build_ext.py
Lib/distutils/command/build_ext.py
+5
-5
install_headers.py
Lib/distutils/command/install_headers.py
+1
-1
dist.py
Lib/distutils/dist.py
+17
-17
No files found.
Lib/distutils/ccompiler.py
Dosyayı görüntüle @
65d6edb4
...
...
@@ -828,7 +828,7 @@ def show_compilers():
from
distutils.fancy_getopt
import
FancyGetopt
compilers
=
[]
for
compiler
in
compiler_class
.
keys
():
compilers
.
append
((
"compiler="
+
compiler
,
None
,
compilers
.
append
((
"compiler="
+
compiler
,
None
,
compiler_class
[
compiler
][
2
]))
compilers
.
sort
()
pretty_printer
=
FancyGetopt
(
compilers
)
...
...
Lib/distutils/command/build_ext.py
Dosyayı görüntüle @
65d6edb4
...
...
@@ -370,12 +370,12 @@ class build_ext (Command):
ext_filename
=
os
.
path
.
join
(
self
.
build_lib
,
self
.
get_ext_filename
(
fullname
))
if
not
(
self
.
force
or
newer_group
(
sources
,
ext_filename
,
'newer'
)):
self
.
announce
(
"skipping '
%
s' extension (up-to-date)"
%
if
not
(
self
.
force
or
newer_group
(
sources
,
ext_filename
,
'newer'
)):
self
.
announce
(
"skipping '
%
s' extension (up-to-date)"
%
ext
.
name
)
continue
# 'for' loop over all extensions
else
:
self
.
announce
(
"building '
%
s' extension"
%
ext
.
name
)
continue
# 'for' loop over all extensions
else
:
self
.
announce
(
"building '
%
s' extension"
%
ext
.
name
)
# First, scan the sources for SWIG definition files (.i), run
# SWIG on 'em to create .c files, and modify the sources list
...
...
Lib/distutils/command/install_headers.py
Dosyayı görüntüle @
65d6edb4
...
...
@@ -22,7 +22,7 @@ class install_headers (Command):
def
initialize_options
(
self
):
self
.
install_dir
=
None
self
.
outfiles
=
[]
self
.
outfiles
=
[]
def
finalize_options
(
self
):
self
.
set_undefined_options
(
'install'
,
...
...
Lib/distutils/dist.py
Dosyayı görüntüle @
65d6edb4
...
...
@@ -275,13 +275,13 @@ class Distribution:
# What to call the per-user config file
if
os
.
name
==
'posix'
:
user_filename
=
".pydistutils.cfg"
else
:
user_filename
=
"pydistutils.cfg"
user_filename
=
".pydistutils.cfg"
else
:
user_filename
=
"pydistutils.cfg"
# And look for the user config file
if
os
.
environ
.
has_key
(
'HOME'
):
user_file
=
os
.
path
.
join
(
os
.
environ
.
get
(
'HOME'
),
user_filename
)
if
os
.
environ
.
has_key
(
'HOME'
):
user_file
=
os
.
path
.
join
(
os
.
environ
.
get
(
'HOME'
),
user_filename
)
if
os
.
path
.
isfile
(
user_file
):
files
.
append
(
user_file
)
...
...
@@ -439,7 +439,7 @@ class Distribution:
# Check for help_options in command class. They have a different
# format (tuple of four) so we need to preprocess them here.
if
(
hasattr
(
cmd_class
,
'help_options'
)
and
if
(
hasattr
(
cmd_class
,
'help_options'
)
and
type
(
cmd_class
.
help_options
)
is
ListType
):
help_options
=
fix_help_options
(
cmd_class
.
help_options
)
else
:
...
...
@@ -457,17 +457,17 @@ class Distribution:
self
.
_show_help
(
parser
,
display_options
=
0
,
commands
=
[
cmd_class
])
return
if
(
hasattr
(
cmd_class
,
'help_options'
)
and
if
(
hasattr
(
cmd_class
,
'help_options'
)
and
type
(
cmd_class
.
help_options
)
is
ListType
):
help_option_found
=
0
for
(
help_option
,
short
,
desc
,
func
)
in
cmd_class
.
help_options
:
if
hasattr
(
opts
,
parser
.
get_attr_name
(
help_option
)):
help_option_found
=
1
help_option_found
=
0
for
(
help_option
,
short
,
desc
,
func
)
in
cmd_class
.
help_options
:
if
hasattr
(
opts
,
parser
.
get_attr_name
(
help_option
)):
help_option_found
=
1
#print "showing help for option %s of command %s" % \
# (help_option[0],cmd_class)
if
callable
(
func
):
func
()
func
()
else
:
raise
DistutilsClassError
,
\
(
"invalid help function
%
s for help option '
%
s': "
...
...
@@ -475,7 +475,7 @@ class Distribution:
(
`func`
,
help_option
)
if
help_option_found
:
return
return
# Put the options from the command-line into their official
# holding pen, the 'command_options' dictionary.
...
...
@@ -526,12 +526,12 @@ class Distribution:
klass
=
command
else
:
klass
=
self
.
get_command_class
(
command
)
if
(
hasattr
(
klass
,
'help_options'
)
and
if
(
hasattr
(
klass
,
'help_options'
)
and
type
(
klass
.
help_options
)
is
ListType
):
parser
.
set_option_table
(
klass
.
user_options
+
parser
.
set_option_table
(
klass
.
user_options
+
fix_help_options
(
klass
.
help_options
))
else
:
parser
.
set_option_table
(
klass
.
user_options
)
else
:
parser
.
set_option_table
(
klass
.
user_options
)
parser
.
print_help
(
"Options for '
%
s' command:"
%
klass
.
__name__
)
print
...
...
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