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
98b1c446
Kaydet (Commit)
98b1c446
authored
Eyl 21, 2012
tarafından
doko@ubuntu.com
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
- Issue #11715: Fix multiarch detection without having Debian development
tools (dpkg-dev) installed.
üst
f8a9a837
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
NEWS
Misc/NEWS
+3
-0
setup.py
setup.py
+21
-0
No files found.
Misc/NEWS
Dosyayı görüntüle @
98b1c446
...
@@ -541,6 +541,9 @@ Tests
...
@@ -541,6 +541,9 @@ Tests
Build
Build
-----
-----
- Issue #11715: Fix multiarch detection without having Debian development
tools (dpkg-dev) installed.
- Issue #15819: Make sure we can build Python out-of-tree from a readonly
- Issue #15819: Make sure we can build Python out-of-tree from a readonly
source directory. (Somewhat related to Issue #9860.)
source directory. (Somewhat related to Issue #9860.)
...
...
setup.py
Dosyayı görüntüle @
98b1c446
...
@@ -376,6 +376,27 @@ class PyBuildExt(build_ext):
...
@@ -376,6 +376,27 @@ class PyBuildExt(build_ext):
def
add_multiarch_paths
(
self
):
def
add_multiarch_paths
(
self
):
# Debian/Ubuntu multiarch support.
# Debian/Ubuntu multiarch support.
# https://wiki.ubuntu.com/MultiarchSpec
# https://wiki.ubuntu.com/MultiarchSpec
cc
=
sysconfig
.
get_config_var
(
'CC'
)
tmpfile
=
os
.
path
.
join
(
self
.
build_temp
,
'multiarch'
)
if
not
os
.
path
.
exists
(
self
.
build_temp
):
os
.
makedirs
(
self
.
build_temp
)
ret
=
os
.
system
(
'
%
s -print-multiarch >
%
s 2> /dev/null'
%
(
cc
,
tmpfile
))
multiarch_path_component
=
''
try
:
if
ret
>>
8
==
0
:
with
open
(
tmpfile
)
as
fp
:
multiarch_path_component
=
fp
.
readline
()
.
strip
()
finally
:
os
.
unlink
(
tmpfile
)
if
multiarch_path_component
!=
''
:
add_dir_to_list
(
self
.
compiler
.
library_dirs
,
'/usr/lib/'
+
multiarch_path_component
)
add_dir_to_list
(
self
.
compiler
.
include_dirs
,
'/usr/include/'
+
multiarch_path_component
)
return
if
not
find_executable
(
'dpkg-architecture'
):
if
not
find_executable
(
'dpkg-architecture'
):
return
return
tmpfile
=
os
.
path
.
join
(
self
.
build_temp
,
'multiarch'
)
tmpfile
=
os
.
path
.
join
(
self
.
build_temp
,
'multiarch'
)
...
...
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