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
5c2ac8c1
Kaydet (Commit)
5c2ac8c1
authored
Nis 30, 2014
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
setup.py: report modules which built but import failed (closes #21282)
Patch by Lukas Vacek.
üst
30a6df5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
ACKS
Misc/ACKS
+1
-0
setup.py
setup.py
+13
-3
No files found.
Misc/ACKS
Dosyayı görüntüle @
5c2ac8c1
...
...
@@ -1356,6 +1356,7 @@ Roger Upole
Daniel Urban
Michael Urman
Hector Urtubia
Lukas Vacek
Ville Vainio
Andi Vajda
Case Van Horsen
...
...
setup.py
Dosyayı görüntüle @
5c2ac8c1
...
...
@@ -167,6 +167,7 @@ class PyBuildExt(build_ext):
def
__init__
(
self
,
dist
):
build_ext
.
__init__
(
self
,
dist
)
self
.
failed
=
[]
self
.
failed_on_import
=
[]
def
build_extensions
(
self
):
...
...
@@ -247,8 +248,9 @@ class PyBuildExt(build_ext):
build_ext
.
build_extensions
(
self
)
longest
=
max
([
len
(
e
.
name
)
for
e
in
self
.
extensions
])
if
self
.
failed
:
longest
=
max
(
longest
,
max
([
len
(
name
)
for
name
in
self
.
failed
]))
if
self
.
failed
or
self
.
failed_on_import
:
all_failed
=
self
.
failed
+
self
.
failed_on_import
longest
=
max
(
longest
,
max
([
len
(
name
)
for
name
in
all_failed
]))
def
print_three_column
(
lst
):
lst
.
sort
(
key
=
str
.
lower
)
...
...
@@ -276,6 +278,14 @@ class PyBuildExt(build_ext):
print_three_column
(
failed
)
print
()
if
self
.
failed_on_import
:
failed
=
self
.
failed_on_import
[:]
print
()
print
(
"Following modules built successfully"
" but were removed because they could not be imported:"
)
print_three_column
(
failed
)
print
()
def
build_extension
(
self
,
ext
):
if
ext
.
name
==
'_ctypes'
:
...
...
@@ -334,7 +344,7 @@ class PyBuildExt(build_ext):
try
:
importlib
.
_bootstrap
.
_SpecMethods
(
spec
)
.
load
()
except
ImportError
as
why
:
self
.
failed
.
append
(
ext
.
name
)
self
.
failed
_on_import
.
append
(
ext
.
name
)
self
.
announce
(
'*** WARNING: renaming "
%
s" since importing it'
' failed:
%
s'
%
(
ext
.
name
,
why
),
level
=
3
)
assert
not
self
.
inplace
...
...
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