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
609a5c81
Kaydet (Commit)
609a5c81
authored
Eyl 13, 1999
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added support for 'package' option, including where to link the
actual extension module to.
üst
68bdf3ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
build_ext.py
Lib/distutils/command/build_ext.py
+11
-8
No files found.
Lib/distutils/command/build_ext.py
Dosyayı görüntüle @
609a5c81
...
@@ -63,6 +63,8 @@ class BuildExt (Command):
...
@@ -63,6 +63,8 @@ class BuildExt (Command):
def
set_default_options
(
self
):
def
set_default_options
(
self
):
self
.
extensions
=
None
self
.
extensions
=
None
self
.
dir
=
None
self
.
dir
=
None
self
.
package
=
None
self
.
include_dirs
=
None
self
.
include_dirs
=
None
self
.
define
=
None
self
.
define
=
None
self
.
undef
=
None
self
.
undef
=
None
...
@@ -74,6 +76,9 @@ class BuildExt (Command):
...
@@ -74,6 +76,9 @@ class BuildExt (Command):
def
set_final_options
(
self
):
def
set_final_options
(
self
):
self
.
set_undefined_options
(
'build'
,
(
'platdir'
,
'dir'
))
self
.
set_undefined_options
(
'build'
,
(
'platdir'
,
'dir'
))
if
self
.
package
is
None
:
self
.
package
=
''
# Make sure Python's include directories (for Python.h, config.h,
# Make sure Python's include directories (for Python.h, config.h,
# etc.) are in the include search path. We have to roll our own
# etc.) are in the include search path. We have to roll our own
# "exec include dir", because the Makefile parsed by sysconfig
# "exec include dir", because the Makefile parsed by sysconfig
...
@@ -92,12 +97,6 @@ class BuildExt (Command):
...
@@ -92,12 +97,6 @@ class BuildExt (Command):
self
.
set_final_options
()
self
.
set_final_options
()
# XXX we should care about the package we compile extensions
# into!
#(extensions, package) = \
# self.distribution.get_options ('ext_modules', 'package')
# 'self.extensions', as supplied by setup.py, is a list of 2-tuples.
# 'self.extensions', as supplied by setup.py, is a list of 2-tuples.
# Each tuple is simple:
# Each tuple is simple:
# (ext_name, build_info)
# (ext_name, build_info)
...
@@ -187,8 +186,12 @@ class BuildExt (Command):
...
@@ -187,8 +186,12 @@ class BuildExt (Command):
libraries
=
build_info
.
get
(
'libraries'
)
libraries
=
build_info
.
get
(
'libraries'
)
library_dirs
=
build_info
.
get
(
'library_dirs'
)
library_dirs
=
build_info
.
get
(
'library_dirs'
)
ext_filename
=
self
.
extension_filename
(
extension_name
)
ext_filename
=
self
.
extension_filename
(
extension_name
)
self
.
compiler
.
link_shared_object
(
objects
,
ext_filename
,
dest
=
os
.
path
.
dirname
(
libraries
,
library_dirs
,
build_info
)
os
.
path
.
join
(
self
.
dir
,
self
.
package
,
ext_filename
))
self
.
mkpath
(
dest
)
self
.
compiler
.
link_shared_object
(
objects
,
ext_filename
,
dest
,
libraries
,
library_dirs
,
build_info
=
build_info
)
# XXX hack!
# build_extensions ()
# build_extensions ()
...
...
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