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
3b4e479d
Kaydet (Commit)
3b4e479d
authored
Haz 11, 2008
tarafından
Amaury Forgeot d'Arc
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Follow-up of PEP 3121:
Correct the exported symbol for extension modules built by distutils
üst
f1ca0b11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
build_ext.py
Lib/distutils/command/build_ext.py
+2
-2
No files found.
Lib/distutils/command/build_ext.py
Dosyayı görüntüle @
3b4e479d
...
...
@@ -646,10 +646,10 @@ class build_ext(Command):
def
get_export_symbols
(
self
,
ext
):
"""Return the list of symbols that a shared extension has to
export. This either uses 'ext.export_symbols' or, if it's not
provided, "
init
" + module_name. Only relevant on Windows, where
provided, "
PyInit_
" + module_name. Only relevant on Windows, where
the .pyd file (DLL) must export the module "init" function.
"""
initfunc_name
=
"
init
"
+
ext
.
name
.
split
(
'.'
)[
-
1
]
initfunc_name
=
"
PyInit_
"
+
ext
.
name
.
split
(
'.'
)[
-
1
]
if
initfunc_name
not
in
ext
.
export_symbols
:
ext
.
export_symbols
.
append
(
initfunc_name
)
return
ext
.
export_symbols
...
...
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