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
c1854673
Kaydet (Commit)
c1854673
authored
Şub 05, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Tweaked various comments, docstrings, and error messages.
üst
0d40ba4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
build_ext.py
Lib/distutils/command/build_ext.py
+12
-2
No files found.
Lib/distutils/command/build_ext.py
Dosyayı görüntüle @
c1854673
...
@@ -103,6 +103,11 @@ class BuildExt (Command):
...
@@ -103,6 +103,11 @@ class BuildExt (Command):
if
exec_py_include
!=
py_include
:
if
exec_py_include
!=
py_include
:
self
.
include_dirs
.
insert
(
0
,
exec_py_include
)
self
.
include_dirs
.
insert
(
0
,
exec_py_include
)
# XXX how the heck are 'self.define' and 'self.undef' supposed to
# be set?
# set_final_options ()
def
run
(
self
):
def
run
(
self
):
...
@@ -152,6 +157,11 @@ class BuildExt (Command):
...
@@ -152,6 +157,11 @@ class BuildExt (Command):
def
check_extensions_list
(
self
,
extensions
):
def
check_extensions_list
(
self
,
extensions
):
"""Ensure that the list of extensions (presumably provided as a
command option 'extensions') is valid, i.e. it is a list of
2-tuples, where the tuples are (extension_name, build_info_dict).
Raise DistutilsValueError if the structure is invalid anywhere;
just returns otherwise."""
if
type
(
extensions
)
is
not
ListType
:
if
type
(
extensions
)
is
not
ListType
:
raise
DistutilsValueError
,
\
raise
DistutilsValueError
,
\
...
@@ -171,7 +181,7 @@ class BuildExt (Command):
...
@@ -171,7 +181,7 @@ class BuildExt (Command):
if
type
(
ext
[
1
])
is
not
DictionaryType
:
if
type
(
ext
[
1
])
is
not
DictionaryType
:
raise
DistutilsValueError
,
\
raise
DistutilsValueError
,
\
"second element of each tuple in 'ext_modules' "
+
\
"second element of each tuple in 'ext_modules' "
+
\
"must be a dictionary"
"must be a dictionary
(build info)
"
# end sanity-check for
# end sanity-check for
...
@@ -197,7 +207,7 @@ class BuildExt (Command):
...
@@ -197,7 +207,7 @@ class BuildExt (Command):
sources
=
build_info
.
get
(
'sources'
)
sources
=
build_info
.
get
(
'sources'
)
if
sources
is
None
or
type
(
sources
)
not
in
(
ListType
,
TupleType
):
if
sources
is
None
or
type
(
sources
)
not
in
(
ListType
,
TupleType
):
raise
DistutilsValueError
,
\
raise
DistutilsValueError
,
\
(
"in
ext_modules
option (extension '
%
s'), "
+
(
"in
'ext_modules'
option (extension '
%
s'), "
+
"'sources' must be present and must be "
+
"'sources' must be present and must be "
+
"a list of source filenames"
)
%
extension_name
"a list of source filenames"
)
%
extension_name
sources
=
list
(
sources
)
sources
=
list
(
sources
)
...
...
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