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
e87acc1f
Kaydet (Commit)
e87acc1f
authored
Eki 23, 2012
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #16116: Now uses corrected include and library paths when building C extensions in a venv.
üst
e6e96eea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
build_ext.py
Lib/distutils/command/build_ext.py
+7
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/distutils/command/build_ext.py
Dosyayı görüntüle @
e87acc1f
...
@@ -160,6 +160,11 @@ class build_ext(Command):
...
@@ -160,6 +160,11 @@ class build_ext(Command):
if
isinstance
(
self
.
include_dirs
,
str
):
if
isinstance
(
self
.
include_dirs
,
str
):
self
.
include_dirs
=
self
.
include_dirs
.
split
(
os
.
pathsep
)
self
.
include_dirs
=
self
.
include_dirs
.
split
(
os
.
pathsep
)
# If in a virtualenv, add its include directory
# Issue 16116
if
sys
.
exec_prefix
!=
sys
.
base_exec_prefix
:
self
.
include_dirs
.
append
(
os
.
path
.
join
(
sys
.
exec_prefix
,
'include'
))
# Put the Python "system" include dir at the end, so that
# Put the Python "system" include dir at the end, so that
# any local include dirs take precedence.
# any local include dirs take precedence.
self
.
include_dirs
.
append
(
py_include
)
self
.
include_dirs
.
append
(
py_include
)
...
@@ -190,6 +195,8 @@ class build_ext(Command):
...
@@ -190,6 +195,8 @@ class build_ext(Command):
# must be the *native* platform. But we don't really support
# must be the *native* platform. But we don't really support
# cross-compiling via a binary install anyway, so we let it go.
# cross-compiling via a binary install anyway, so we let it go.
self
.
library_dirs
.
append
(
os
.
path
.
join
(
sys
.
exec_prefix
,
'libs'
))
self
.
library_dirs
.
append
(
os
.
path
.
join
(
sys
.
exec_prefix
,
'libs'
))
if
sys
.
base_exec_prefix
!=
sys
.
prefix
:
# Issue 16116
self
.
library_dirs
.
append
(
os
.
path
.
join
(
sys
.
base_exec_prefix
,
'libs'
))
if
self
.
debug
:
if
self
.
debug
:
self
.
build_temp
=
os
.
path
.
join
(
self
.
build_temp
,
"Debug"
)
self
.
build_temp
=
os
.
path
.
join
(
self
.
build_temp
,
"Debug"
)
else
:
else
:
...
...
Misc/NEWS
Dosyayı görüntüle @
e87acc1f
...
@@ -46,6 +46,9 @@ Core and Builtins
...
@@ -46,6 +46,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #16116: Fix include and library paths to be correctwhen building C
extensions in venvs.
- Issue #16245: Fix the value of a few entities in html.entities.html5.
- Issue #16245: Fix the value of a few entities in html.entities.html5.
- Issue #14398: Fix size truncation and overflow bugs in the bz2 module.
- Issue #14398: Fix size truncation and overflow bugs in the bz2 module.
...
...
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