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
ac20f773
Kaydet (Commit)
ac20f773
authored
Mar 22, 2001
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Back out conversion to string methods; the Distutils is intended to work
with 1.5.2
üst
a7f225d8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
cmd.py
Lib/distutils/cmd.py
+3
-3
cygwinccompiler.py
Lib/distutils/cygwinccompiler.py
+3
-3
extension.py
Lib/distutils/extension.py
+2
-2
version.py
Lib/distutils/version.py
+5
-5
No files found.
Lib/distutils/cmd.py
Dosyayı görüntüle @
ac20f773
...
...
@@ -9,7 +9,7 @@ in the distutils.command package.
__revision__
=
"$Id$"
import
sys
,
os
,
re
import
sys
,
os
,
string
,
re
from
types
import
*
from
distutils.errors
import
*
from
distutils
import
util
,
dir_util
,
file_util
,
archive_util
,
dep_util
...
...
@@ -161,7 +161,7 @@ class Command:
print
indent
+
header
indent
=
indent
+
" "
for
(
option
,
_
,
_
)
in
self
.
user_options
:
option
=
option
.
translate
(
longopt_xlate
)
option
=
string
.
translate
(
option
,
longopt_xlate
)
if
option
[
-
1
]
==
"="
:
option
=
option
[:
-
1
]
value
=
getattr
(
self
,
option
)
...
...
@@ -421,7 +421,7 @@ class Command:
"""
if
exec_msg
is
None
:
exec_msg
=
"generating
%
s from
%
s"
%
\
(
outfile
,
', '
.
join
(
infiles
))
(
outfile
,
string
.
join
(
infiles
,
', '
))
if
skip_msg
is
None
:
skip_msg
=
"skipping
%
s (inputs unchanged)"
%
outfile
...
...
Lib/distutils/cygwinccompiler.py
Dosyayı görüntüle @
ac20f773
...
...
@@ -365,10 +365,10 @@ def check_config_h():
# "config.h" check -- should probably be renamed...
from
distutils
import
sysconfig
import
sys
import
s
tring
,
s
ys
# if sys.version contains GCC then python was compiled with
# GCC, and the config.h file should be OK
if
s
ys
.
version
.
find
(
"GCC"
)
>=
0
:
if
s
tring
.
find
(
sys
.
version
,
"GCC"
)
>=
0
:
return
(
CONFIG_H_OK
,
"sys.version mentions 'GCC'"
)
fn
=
sysconfig
.
get_config_h_filename
()
...
...
@@ -387,7 +387,7 @@ def check_config_h():
else
:
# "config.h" contains an "#ifdef __GNUC__" or something similar
if
s
.
find
(
"__GNUC__"
)
>=
0
:
if
s
tring
.
find
(
s
,
"__GNUC__"
)
>=
0
:
return
(
CONFIG_H_OK
,
"'
%
s' mentions '__GNUC__'"
%
fn
)
else
:
return
(
CONFIG_H_NOTOK
,
"'
%
s' does not mention '__GNUC__'"
%
fn
)
...
...
Lib/distutils/extension.py
Dosyayı görüntüle @
ac20f773
...
...
@@ -7,7 +7,7 @@ modules in setup scripts."""
__revision__
=
"$Id$"
import
os
import
os
,
string
from
types
import
*
...
...
@@ -168,7 +168,7 @@ def read_setup_file (filename):
elif
switch
==
"-I"
:
ext
.
include_dirs
.
append
(
value
)
elif
switch
==
"-D"
:
equals
=
value
.
find
(
"="
)
equals
=
string
.
find
(
value
,
"="
)
if
equals
==
-
1
:
# bare "-DFOO" -- no value
ext
.
define_macros
.
append
((
value
,
None
))
else
:
# "-DFOO=blah"
...
...
Lib/distutils/version.py
Dosyayı görüntüle @
ac20f773
...
...
@@ -112,12 +112,12 @@ class StrictVersion (Version):
match
.
group
(
1
,
2
,
4
,
5
,
6
)
if
patch
:
self
.
version
=
tuple
(
map
(
int
,
[
major
,
minor
,
patch
]))
self
.
version
=
tuple
(
map
(
string
.
atoi
,
[
major
,
minor
,
patch
]))
else
:
self
.
version
=
tuple
(
map
(
int
,
[
major
,
minor
])
+
[
0
])
self
.
version
=
tuple
(
map
(
string
.
atoi
,
[
major
,
minor
])
+
[
0
])
if
prerelease
:
self
.
prerelease
=
(
prerelease
[
0
],
int
(
prerelease_num
))
self
.
prerelease
=
(
prerelease
[
0
],
string
.
atoi
(
prerelease_num
))
else
:
self
.
prerelease
=
None
...
...
@@ -125,9 +125,9 @@ class StrictVersion (Version):
def
__str__
(
self
):
if
self
.
version
[
2
]
==
0
:
vstring
=
'.'
.
join
(
map
(
str
,
self
.
version
[
0
:
2
])
)
vstring
=
string
.
join
(
map
(
str
,
self
.
version
[
0
:
2
]),
'.'
)
else
:
vstring
=
'.'
.
join
(
map
(
str
,
self
.
version
)
)
vstring
=
string
.
join
(
map
(
str
,
self
.
version
),
'.'
)
if
self
.
prerelease
:
vstring
=
vstring
+
self
.
prerelease
[
0
]
+
str
(
self
.
prerelease
[
1
])
...
...
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