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
f04fa725
Kaydet (Commit)
f04fa725
authored
Nis 10, 1996
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Changed to allow the user to do partial builds
üst
3422f2ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
7 deletions
+33
-7
fullbuild.py
Mac/scripts/fullbuild.py
+33
-7
No files found.
Mac/scripts/fullbuild.py
Dosyayı görüntüle @
f04fa725
...
...
@@ -13,6 +13,7 @@ import os
import
sys
import
macfs
import
MacOS
import
EasyDialogs
import
addpack
import
aetools
...
...
@@ -27,11 +28,14 @@ import mkapplet
class
MwShell
(
aetools
.
TalkTo
,
Metrowerks_Shell_Suite
,
Required_Suite
):
pass
RUNNING
=
[]
def
buildmwproject
(
top
,
creator
,
projects
):
"""Build projects with an MW compiler"""
print
'Please start project mgr with signature'
,
creator
,
'-'
sys
.
stdin
.
readline
()
if
not
creator
in
RUNNING
:
print
'Please start project mgr with signature'
,
creator
,
'-'
sys
.
stdin
.
readline
()
RUNNING
.
append
(
creator
)
try
:
mgr
=
MwShell
(
creator
)
except
'foo'
:
...
...
@@ -49,7 +53,7 @@ def buildmwproject(top, creator, projects):
except
MacOS
.
Error
,
arg
:
print
'** Failed. Possible error:'
,
arg
mgr
.
Close_Project
()
mgr
.
quit
()
##
mgr.quit()
def
buildapplet
(
top
,
dummy
,
list
):
"""Create a PPC python applet"""
...
...
@@ -70,21 +74,29 @@ def buildapplet(top, dummy, list):
#
# The build instructions. Entries are (routine, arg, list-of-files)
# XXXX We could also include the builds for stdwin and such here...
INSTRUCTIONS
=
[
PPC_
INSTRUCTIONS
=
[
(
buildmwproject
,
"CWIE"
,
[
":build.macppc.shared:PythonCore."
,
":build.macppc.shared:PythonPPC."
,
":build.macppc.shared:PythonApplet."
,
])
]
PLUGIN_INSTRUCTIONS
=
[
(
buildmwproject
,
"CWIE"
,
[
":PlugIns:ctbmodule."
,
":PlugIns:imgmodules."
,
":PlugIns:macspeechmodule."
,
":PlugIns:mactcpmodules."
,
":PlugIns:stdwinmodule."
,
":PlugIns:toolboxmodules."
,
])
]
M68K_INSTRUCTIONS
=
[
(
buildmwproject
,
"CWIE"
,
[
":build.mac68k.stand:Python68K."
,
]),
])
]
APPLET_INSTRUCTIONS
=
[
(
buildapplet
,
None
,
[
":Mac:scripts:EditPythonPrefs.py"
,
":Mac:scripts:mkapplet.py"
,
...
...
@@ -92,12 +104,26 @@ INSTRUCTIONS=[
":Mac:scripts:MkPluginAliases.py"
])
]
ALLINST
=
[
(
"PPC shared executable"
,
PPC_INSTRUCTIONS
),
(
"PPC plugin modules"
,
PLUGIN_INSTRUCTIONS
),
(
"68K executable"
,
M68K_INSTRUCTIONS
),
(
"PPC applets"
,
APPLET_INSTRUCTIONS
)
]
def
main
():
dir
,
ok
=
macfs
.
GetDirectory
(
'Python source folder:'
)
if
not
ok
:
sys
.
exit
(
0
)
dir
=
dir
.
as_pathname
()
INSTRUCTIONS
=
[]
for
string
,
inst
in
ALLINST
:
answer
=
EasyDialogs
.
AskYesNoCancel
(
"Build
%
s?"
%
string
,
1
)
if
answer
<
0
:
sys
.
exit
(
0
)
if
answer
:
INSTRUCTIONS
=
INSTRUCTIONS
+
inst
for
routine
,
arg
,
list
in
INSTRUCTIONS
:
routine
(
dir
,
arg
,
list
)
print
"All done!"
...
...
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