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
e9a2b8a0
Kaydet (Commit)
e9a2b8a0
authored
May 12, 2009
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
the compiler attribute is used in setup.py; can't rename
üst
972480d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
build_ext.py
Lib/distutils/command/build_ext.py
+14
-14
No files found.
Lib/distutils/command/build_ext.py
Dosyayı görüntüle @
e9a2b8a0
...
...
@@ -311,38 +311,38 @@ class build_ext (Command):
# Setup the CCompiler object that we'll use to do all the
# compiling and linking
self
.
_compiler
=
new_compiler
(
compiler
=
self
.
compiler
,
self
.
compiler
=
new_compiler
(
compiler
=
None
,
verbose
=
self
.
verbose
,
dry_run
=
self
.
dry_run
,
force
=
self
.
force
)
customize_compiler
(
self
.
_
compiler
)
customize_compiler
(
self
.
compiler
)
# If we are cross-compiling, init the compiler now (if we are not
# cross-compiling, init would not hurt, but people may rely on
# late initialization of compiler even if they shouldn't...)
if
os
.
name
==
'nt'
and
self
.
plat_name
!=
get_platform
():
self
.
_
compiler
.
initialize
(
self
.
plat_name
)
self
.
compiler
.
initialize
(
self
.
plat_name
)
# And make sure that any compile/link-related options (which might
# come from the command-line or from the setup script) are set in
# that CCompiler object -- that way, they automatically apply to
# all compiling and linking done here.
if
self
.
include_dirs
is
not
None
:
self
.
_
compiler
.
set_include_dirs
(
self
.
include_dirs
)
self
.
compiler
.
set_include_dirs
(
self
.
include_dirs
)
if
self
.
define
is
not
None
:
# 'define' option is a list of (name,value) tuples
for
(
name
,
value
)
in
self
.
define
:
self
.
_
compiler
.
define_macro
(
name
,
value
)
self
.
compiler
.
define_macro
(
name
,
value
)
if
self
.
undef
is
not
None
:
for
macro
in
self
.
undef
:
self
.
_
compiler
.
undefine_macro
(
macro
)
self
.
compiler
.
undefine_macro
(
macro
)
if
self
.
libraries
is
not
None
:
self
.
_
compiler
.
set_libraries
(
self
.
libraries
)
self
.
compiler
.
set_libraries
(
self
.
libraries
)
if
self
.
library_dirs
is
not
None
:
self
.
_
compiler
.
set_library_dirs
(
self
.
library_dirs
)
self
.
compiler
.
set_library_dirs
(
self
.
library_dirs
)
if
self
.
rpath
is
not
None
:
self
.
_
compiler
.
set_runtime_library_dirs
(
self
.
rpath
)
self
.
compiler
.
set_runtime_library_dirs
(
self
.
rpath
)
if
self
.
link_objects
is
not
None
:
self
.
_
compiler
.
set_link_objects
(
self
.
link_objects
)
self
.
compiler
.
set_link_objects
(
self
.
link_objects
)
# Now actually compile and link everything.
self
.
build_extensions
()
...
...
@@ -504,7 +504,7 @@ class build_ext (Command):
for
undef
in
ext
.
undef_macros
:
macros
.
append
((
undef
,))
objects
=
self
.
_
compiler
.
compile
(
sources
,
objects
=
self
.
compiler
.
compile
(
sources
,
output_dir
=
self
.
build_temp
,
macros
=
macros
,
include_dirs
=
ext
.
include_dirs
,
...
...
@@ -531,9 +531,9 @@ class build_ext (Command):
extra_args
=
ext
.
extra_link_args
or
[]
# Detect target language, if not provided
language
=
ext
.
language
or
self
.
_
compiler
.
detect_language
(
sources
)
language
=
ext
.
language
or
self
.
compiler
.
detect_language
(
sources
)
self
.
_
compiler
.
link_shared_object
(
self
.
compiler
.
link_shared_object
(
objects
,
ext_path
,
libraries
=
self
.
get_libraries
(
ext
),
library_dirs
=
ext
.
library_dirs
,
...
...
@@ -704,7 +704,7 @@ class build_ext (Command):
# Append '_d' to the python import library on debug builds.
if
sys
.
platform
==
"win32"
:
from
distutils.msvccompiler
import
MSVCCompiler
if
not
isinstance
(
self
.
_
compiler
,
MSVCCompiler
):
if
not
isinstance
(
self
.
compiler
,
MSVCCompiler
):
template
=
"python
%
d
%
d"
if
self
.
debug
:
template
=
template
+
'_d'
...
...
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