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
91f0e346
Kaydet (Commit)
91f0e346
authored
May 21, 2011
tarafından
Tarek Ziade
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fixed the way the cfg file markers values are split under win32
üst
ec9b76d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
config.py
Lib/packaging/config.py
+2
-1
test_config.py
Lib/packaging/tests/test_config.py
+1
-1
No files found.
Lib/packaging/config.py
Dosyayı görüntüle @
91f0e346
...
@@ -21,7 +21,8 @@ def _pop_values(values_dct, key):
...
@@ -21,7 +21,8 @@ def _pop_values(values_dct, key):
if
not
vals_str
:
if
not
vals_str
:
return
return
fields
=
[]
fields
=
[]
for
field
in
vals_str
.
split
(
os
.
linesep
):
# the line separator is \n for setup.cfg files
for
field
in
vals_str
.
split
(
'
\n
'
):
tmp_vals
=
field
.
split
(
'--'
)
tmp_vals
=
field
.
split
(
'--'
)
if
len
(
tmp_vals
)
==
2
and
not
interpret
(
tmp_vals
[
1
]):
if
len
(
tmp_vals
)
==
2
and
not
interpret
(
tmp_vals
[
1
]):
continue
continue
...
...
Lib/packaging/tests/test_config.py
Dosyayı görüntüle @
91f0e346
...
@@ -307,7 +307,7 @@ class ConfigTestCase(support.TempdirManager,
...
@@ -307,7 +307,7 @@ class ConfigTestCase(support.TempdirManager,
[
'/usr/include/gecode'
,
'/usr/include/blitz'
])
[
'/usr/include/gecode'
,
'/usr/include/blitz'
])
cargs
=
[
'-fPIC'
,
'-O2'
]
cargs
=
[
'-fPIC'
,
'-O2'
]
if
sys
.
platform
==
'win32'
:
if
sys
.
platform
==
'win32'
:
cargs
.
append
(
"/DGECODE_VERSION=
'win32'
"
)
cargs
.
append
(
"/DGECODE_VERSION=
win32
"
)
else
:
else
:
cargs
.
append
(
'-DGECODE_VERSION=$(./gecode_version)'
)
cargs
.
append
(
'-DGECODE_VERSION=$(./gecode_version)'
)
self
.
assertEqual
(
ext
.
extra_compile_args
,
cargs
)
self
.
assertEqual
(
ext
.
extra_compile_args
,
cargs
)
...
...
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