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
aa56096a
Kaydet (Commit)
aa56096a
authored
Kas 07, 2006
tarafından
Ronald Oussoren
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix a number of typos in strings and comments (sf#1589070)
üst
32305993
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
build-installer.py
Mac/BuildScript/build-installer.py
+12
-13
No files found.
Mac/BuildScript/build-installer.py
Dosyayı görüntüle @
aa56096a
...
@@ -33,7 +33,7 @@ except ImportError:
...
@@ -33,7 +33,7 @@ except ImportError:
def
shellQuote
(
value
):
def
shellQuote
(
value
):
"""
"""
Return the string value in a form that can sa
v
ely be inserted into
Return the string value in a form that can sa
f
ely be inserted into
a shell command.
a shell command.
"""
"""
return
"'
%
s'"
%
(
value
.
replace
(
"'"
,
"'
\"
'
\"
'"
))
return
"'
%
s'"
%
(
value
.
replace
(
"'"
,
"'
\"
'
\"
'"
))
...
@@ -56,10 +56,10 @@ def getFullVersion():
...
@@ -56,10 +56,10 @@ def getFullVersion():
raise
RuntimeError
,
"Cannot find full version??"
raise
RuntimeError
,
"Cannot find full version??"
# The directory we'll use to create the build
, will be erased and recreated
# The directory we'll use to create the build
(will be erased and recreated)
WORKDIR
=
"/tmp/_py"
WORKDIR
=
"/tmp/_py"
# The directory we'll use to store third-party sources
, s
et this to something
# The directory we'll use to store third-party sources
. S
et this to something
# else if you don't want to re-fetch required libraries every time.
# else if you don't want to re-fetch required libraries every time.
DEPSRC
=
os
.
path
.
join
(
WORKDIR
,
'third-party'
)
DEPSRC
=
os
.
path
.
join
(
WORKDIR
,
'third-party'
)
DEPSRC
=
os
.
path
.
expanduser
(
'~/Universal/other-sources'
)
DEPSRC
=
os
.
path
.
expanduser
(
'~/Universal/other-sources'
)
...
@@ -201,7 +201,7 @@ PKG_RECIPES=[
...
@@ -201,7 +201,7 @@ PKG_RECIPES=[
long_name
=
"GUI Applications"
,
long_name
=
"GUI Applications"
,
source
=
"/Applications/MacPython
%(VER)
s"
,
source
=
"/Applications/MacPython
%(VER)
s"
,
readme
=
"""
\
readme
=
"""
\
This package installs IDLE (an interactive Python ID
L
E),
This package installs IDLE (an interactive Python IDE),
Python Launcher and Build Applet (create application bundles
Python Launcher and Build Applet (create application bundles
from python scripts).
from python scripts).
...
@@ -257,8 +257,7 @@ PKG_RECIPES=[
...
@@ -257,8 +257,7 @@ PKG_RECIPES=[
readme
=
"""
\
readme
=
"""
\
This package updates the system python installation on
This package updates the system python installation on
Mac OS X 10.3 to ensure that you can build new python extensions
Mac OS X 10.3 to ensure that you can build new python extensions
using that copy of python after installing this version of
using that copy of python after installing this version.
python.
"""
,
"""
,
postflight
=
"../Tools/fixapplepython23.py"
,
postflight
=
"../Tools/fixapplepython23.py"
,
topdir
=
"/Library/Frameworks/Python.framework"
,
topdir
=
"/Library/Frameworks/Python.framework"
,
...
@@ -637,15 +636,15 @@ def buildPython():
...
@@ -637,15 +636,15 @@ def buildPython():
print
"Running make"
print
"Running make"
runCommand
(
"make"
)
runCommand
(
"make"
)
print
"Runing make frameworkinstall"
print
"Run
n
ing make frameworkinstall"
runCommand
(
"make frameworkinstall DESTDIR=
%
s"
%
(
runCommand
(
"make frameworkinstall DESTDIR=
%
s"
%
(
shellQuote
(
rootDir
)))
shellQuote
(
rootDir
)))
print
"Runing make frameworkinstallextras"
print
"Run
n
ing make frameworkinstallextras"
runCommand
(
"make frameworkinstallextras DESTDIR=
%
s"
%
(
runCommand
(
"make frameworkinstallextras DESTDIR=
%
s"
%
(
shellQuote
(
rootDir
)))
shellQuote
(
rootDir
)))
print
"Copy required shared libraries"
print
"Copy
ing
required shared libraries"
if
os
.
path
.
exists
(
os
.
path
.
join
(
WORKDIR
,
'libraries'
,
'Library'
)):
if
os
.
path
.
exists
(
os
.
path
.
join
(
WORKDIR
,
'libraries'
,
'Library'
)):
runCommand
(
"mv
%
s/*
%
s"
%
(
runCommand
(
"mv
%
s/*
%
s"
%
(
shellQuote
(
os
.
path
.
join
(
shellQuote
(
os
.
path
.
join
(
...
@@ -735,8 +734,8 @@ def patchScript(inPath, outPath):
...
@@ -735,8 +734,8 @@ def patchScript(inPath, outPath):
def
packageFromRecipe
(
targetDir
,
recipe
):
def
packageFromRecipe
(
targetDir
,
recipe
):
curdir
=
os
.
getcwd
()
curdir
=
os
.
getcwd
()
try
:
try
:
# The major version (such as 2.5) is included in the pac
ak
ge name
# The major version (such as 2.5) is included in the pac
ka
ge name
# because hav
e
ing two version of python installed at the same time is
# because having two version of python installed at the same time is
# common.
# common.
pkgname
=
'
%
s-
%
s'
%
(
recipe
[
'name'
],
getVersion
())
pkgname
=
'
%
s-
%
s'
%
(
recipe
[
'name'
],
getVersion
())
srcdir
=
recipe
.
get
(
'source'
)
srcdir
=
recipe
.
get
(
'source'
)
...
@@ -910,7 +909,7 @@ def installSize(clear=False, _saved=[]):
...
@@ -910,7 +909,7 @@ def installSize(clear=False, _saved=[]):
def
buildDMG
():
def
buildDMG
():
"""
"""
Create DMG containing the rootDir
Create DMG containing the rootDir
.
"""
"""
outdir
=
os
.
path
.
join
(
WORKDIR
,
'diskimage'
)
outdir
=
os
.
path
.
join
(
WORKDIR
,
'diskimage'
)
if
os
.
path
.
exists
(
outdir
):
if
os
.
path
.
exists
(
outdir
):
...
@@ -923,7 +922,7 @@ def buildDMG():
...
@@ -923,7 +922,7 @@ def buildDMG():
imagepath
=
imagepath
+
'.dmg'
imagepath
=
imagepath
+
'.dmg'
os
.
mkdir
(
outdir
)
os
.
mkdir
(
outdir
)
runCommand
(
"hdiutil create -volname 'Univeral MacPython
%
s' -srcfolder
%
s
%
s"
%
(
runCommand
(
"hdiutil create -volname 'Univer
s
al MacPython
%
s' -srcfolder
%
s
%
s"
%
(
getFullVersion
(),
getFullVersion
(),
shellQuote
(
os
.
path
.
join
(
WORKDIR
,
'installer'
)),
shellQuote
(
os
.
path
.
join
(
WORKDIR
,
'installer'
)),
shellQuote
(
imagepath
)))
shellQuote
(
imagepath
)))
...
...
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