Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6655c4e2
Commit
6655c4e2
authored
Sep 01, 1995
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build appplications, libraries and applets according to builtin
instructions.
parent
0f452fa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
104 additions
and
0 deletions
+104
-0
Mac/scripts/fullbuild.py
Mac/scripts/fullbuild.py
+104
-0
No files found.
Mac/scripts/fullbuild.py
0 → 100644
View file @
6655c4e2
#
# fullbuild creates everything that needs to be created before a
# distribution can be made, and puts it all in the right place.
#
# It expects the projects to be in the places where Jack likes them:
# in directories named like 'build.macppc.shared'. That is fixable,
# however.
#
# NOTE: You should proably make a copy of python with which to execute this
# script, rebuilding running programs does not work...
import
os
import
sys
import
macfs
import
addpack
addpack
.
addpack
(
'Tools'
)
addpack
.
addpack
(
'bgen'
)
addpack
.
addpack
(
'AE'
)
import
aetools
from
Metrowerks_Shell_Suite
import
Metrowerks_Shell_Suite
from
Required_Suite
import
Required_Suite
addpack
.
addpack
(
'Mac'
)
addpack
.
addpack
(
'scripts'
)
import
mkapplet
class
MwShell
(
aetools
.
TalkTo
,
Metrowerks_Shell_Suite
,
Required_Suite
):
pass
def
buildmwproject
(
top
,
creator
,
projects
):
"""Build projects with an MW compiler"""
print
'Please start project mgr with signature'
,
creator
,
'-'
sys
.
stdin
.
readline
()
try
:
mgr
=
MwShell
(
creator
)
except
'foo'
:
print
'Not handled:'
,
creator
return
for
file
in
projects
:
file
=
os
.
path
.
join
(
top
,
file
)
fss
=
macfs
.
FSSpec
(
file
)
print
'Building'
,
file
mgr
.
open
(
fss
)
mgr
.
Make_Project
()
mgr
.
Close_Project
()
mgr
.
quit
()
def
buildapplet
(
top
,
dummy
,
list
):
"""Create a PPC python applet"""
template
=
mkapplet
.
findtemplate
()
for
src
in
list
:
if
src
[
-
3
:]
!=
'.py'
:
raise
'Should end in .py'
,
src
base
=
os
.
path
.
basename
(
src
)
dst
=
os
.
path
.
join
(
top
,
base
)[:
-
3
]
src
=
os
.
path
.
join
(
top
,
src
)
try
:
os
.
unlink
(
dst
)
except
os
.
error
:
pass
print
'Building applet'
,
dst
mkapplet
.
process
(
template
,
src
,
dst
)
#
# The build instructions. Entries are (routine, arg, list-of-files)
# XXXX We could also include the builds for stdwin and such here...
INSTRUCTIONS
=
[
(
buildmwproject
,
"MPCC"
,
[
":build.macppc.shared:PythonCore."
,
":build.macppc.shared:PythonPPC."
,
":build.macppc.shared:PythonApplet."
,
":PlugIns:ctbmodule."
,
":PlugIns:imgmodules."
,
":PlugIns:macspeechmodule."
,
":PlugIns:mactcpmodules."
,
":PlugIns:stdwinmodule."
,
":PlugIns:toolboxmodules."
,
]),
(
buildmwproject
,
"MMCC"
,
[
":build.mac68k.stand:Python68K."
,
]),
(
buildapplet
,
None
,
[
":Mac:scripts:EditPythonPrefs.py"
,
":Mac:scripts:mkapplet.py"
,
":Mac:scripts:RunLibScript.py"
])
]
def
main
():
dir
,
ok
=
macfs
.
GetDirectory
(
'Python source folder:'
)
if
not
ok
:
sys
.
exit
(
0
)
dir
=
dir
.
as_pathname
()
for
routine
,
arg
,
list
in
INSTRUCTIONS
:
routine
(
dir
,
arg
,
list
)
print
"All done!"
sys
.
exit
(
1
)
if
__name__
==
'__main__'
:
main
()
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