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
a4f6b006
Kaydet (Commit)
a4f6b006
authored
Eki 25, 2013
tarafından
Ned Deily
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Sync 2.7.x, 3.3.x, and 3.4.x versions of OS X build-installer.py.
üst
4b7a0231
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
8 deletions
+48
-8
build-installer.py
Mac/BuildScript/build-installer.py
+48
-8
No files found.
Mac/BuildScript/build-installer.py
Dosyayı görüntüle @
a4f6b006
...
...
@@ -1058,22 +1058,62 @@ def buildPython():
# the end-users system. Also remove the directories from _sysconfigdata.py
# (added in 3.3) if it exists.
include_path
=
'-I
%
s/libraries/usr/local/include'
%
(
WORKDIR
,)
lib_path
=
'-L
%
s/libraries/usr/local/lib'
%
(
WORKDIR
,)
path_to_lib
=
os
.
path
.
join
(
rootDir
,
'Library'
,
'Frameworks'
,
'Python.framework'
,
'Versions'
,
version
,
'lib'
,
'python
%
s'
%
(
version
,))
paths
=
[
os
.
path
.
join
(
path_to_lib
,
'config'
+
config_suffix
,
'Makefile'
),
os
.
path
.
join
(
path_to_lib
,
'_sysconfigdata.py'
)]
for
path
in
paths
:
if
not
os
.
path
.
exists
(
path
):
continue
# fix Makefile
path
=
os
.
path
.
join
(
path_to_lib
,
'config'
+
config_suffix
,
'Makefile'
)
fp
=
open
(
path
,
'r'
)
data
=
fp
.
read
()
fp
.
close
()
for
p
in
(
include_path
,
lib_path
):
data
=
data
.
replace
(
" "
+
p
,
''
)
data
=
data
.
replace
(
p
+
" "
,
''
)
fp
=
open
(
path
,
'w'
)
fp
.
write
(
data
)
fp
.
close
()
# fix _sysconfigdata if it exists
#
# TODO: make this more robust! test_sysconfig_module of
# distutils.tests.test_sysconfig.SysconfigTestCase tests that
# the output from get_config_var in both sysconfig and
# distutils.sysconfig is exactly the same for both CFLAGS and
# LDFLAGS. The fixing up is now complicated by the pretty
# printing in _sysconfigdata.py. Also, we are using the
# pprint from the Python running the installer build which
# may not cosmetically format the same as the pprint in the Python
# being built (and which is used to originally generate
# _sysconfigdata.py).
import
pprint
path
=
os
.
path
.
join
(
path_to_lib
,
'_sysconfigdata.py'
)
if
os
.
path
.
exists
(
path
):
fp
=
open
(
path
,
'r'
)
data
=
fp
.
read
()
fp
.
close
()
# create build_time_vars dict
exec
(
data
)
vars
=
{}
for
k
,
v
in
build_time_vars
.
items
():
if
type
(
v
)
==
type
(
''
):
for
p
in
(
include_path
,
lib_path
):
v
=
v
.
replace
(
' '
+
p
,
''
)
v
=
v
.
replace
(
p
+
' '
,
''
)
vars
[
k
]
=
v
data
=
data
.
replace
(
' -L
%
s/libraries/usr/local/lib'
%
(
WORKDIR
,),
''
)
data
=
data
.
replace
(
' -I
%
s/libraries/usr/local/include'
%
(
WORKDIR
,),
''
)
fp
=
open
(
path
,
'w'
)
fp
.
write
(
data
)
# duplicated from sysconfig._generate_posix_vars()
fp
.
write
(
'# system configuration generated and used by'
' the sysconfig module
\n
'
)
fp
.
write
(
'build_time_vars = '
)
pprint
.
pprint
(
vars
,
stream
=
fp
)
fp
.
close
()
# Add symlinks in /usr/local/bin, using relative links
...
...
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