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
7f732701
Kaydet (Commit)
7f732701
authored
Eki 13, 2009
tarafından
Tarek Ziadé
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
complementary fix for #7115
üst
ff0d8a36
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
build_ext.py
Lib/distutils/command/build_ext.py
+4
-2
test_build_ext.py
Lib/distutils/tests/test_build_ext.py
+13
-0
No files found.
Lib/distutils/command/build_ext.py
Dosyayı görüntüle @
7f732701
...
...
@@ -628,8 +628,10 @@ class build_ext (Command):
The file is located in `build_lib` or directly in the package
(inplace option).
"""
if
os
.
sep
in
ext_name
:
ext_name
=
ext_name
.
replace
(
os
.
sep
,
'.'
)
# makes sure the extension name is only using dots
all_dots
=
string
.
maketrans
(
'/'
+
os
.
sep
,
'..'
)
ext_name
=
ext_name
.
translate
(
all_dots
)
fullname
=
self
.
get_ext_fullname
(
ext_name
)
modpath
=
fullname
.
split
(
'.'
)
filename
=
self
.
get_ext_filename
(
ext_name
)
...
...
Lib/distutils/tests/test_build_ext.py
Dosyayı görüntüle @
7f732701
...
...
@@ -373,6 +373,19 @@ class BuildExtTestCase(support.TempdirManager,
wanted
=
os
.
path
.
join
(
cmd
.
build_lib
,
'UpdateManager'
,
'fdsend'
+
ext
)
self
.
assertEquals
(
ext_path
,
wanted
)
def
test_build_ext_path_cross_platform
(
self
):
if
sys
.
platform
!=
'win32'
:
return
dist
=
Distribution
({
'name'
:
'UpdateManager'
})
cmd
=
build_ext
(
dist
)
cmd
.
ensure_finalized
()
ext
=
sysconfig
.
get_config_var
(
"SO"
)
# this needs to work even under win32
ext_name
=
'UpdateManager/fdsend'
ext_path
=
cmd
.
get_ext_fullpath
(
ext_name
)
wanted
=
os
.
path
.
join
(
cmd
.
build_lib
,
'UpdateManager'
,
'fdsend'
+
ext
)
self
.
assertEquals
(
ext_path
,
wanted
)
def
test_suite
():
if
not
sysconfig
.
python_build
:
if
test_support
.
verbose
:
...
...
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