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
3277b351
Kaydet (Commit)
3277b351
authored
Agu 08, 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
20416a20
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 @
3277b351
...
@@ -312,6 +312,9 @@ Tests
...
@@ -312,6 +312,9 @@ Tests
Build
Build
-----
-----
- Issue #11715: Fix multiarch detection without having Debian development
tools (dpkg-dev) installed.
- Issue #15037: Build OS X installers with local copy of ncurses 5.9 libraries
- Issue #15037: Build OS X installers with local copy of ncurses 5.9 libraries
to avoid curses.unget_wch bug present in older versions of ncurses such as
to avoid curses.unget_wch bug present in older versions of ncurses such as
those shipped with OS X.
those shipped with OS X.
...
...
setup.py
Dosyayı görüntüle @
3277b351
...
@@ -379,6 +379,27 @@ class PyBuildExt(build_ext):
...
@@ -379,6 +379,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
opt
=
''
opt
=
''
...
...
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