Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2139fe

Browse files
committed
Added (minimal) documentation on how to build standalone applications
with Python. Updated various things (versions of libraries used, urls).
1 parent b92dce3 commit a2139fe

13 files changed

Lines changed: 241 additions & 172 deletions

Mac/Demo/PICTbrowse/PICTbrowse.rsrc.hqx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
:$e"*3e4LFQphFf8ZFR0bB`"bFh*M8P0&4!#3#!'8,V!!N!3"!!!!!6m!!!!r!!!
44
!9G'"(r!!q[m!!2Vr!!$kf!!!qYJ!!2VB!!$kf!!!q[qJ$e"*3e4LFQphFf8ZFR0
5-
bB`)!!!"bFh*M8P0&4!#3"R*cFQ058d9%!*!BVAAL!`#3"J'8r`!!q[m!!2VB!!$
5+
bB`)!!!"bFh*M8P0&4!#3"R*cFQ058d9%!*!BVPGG(3#3"J'8r`!!q[m!!2VB!!$
66
kf!!!qYJ!!2VB!!$krk!!q[mJm!$kr`!!q[m!!2VB&3!!qYJ!!2VB!!!6qYJ!!2V
77
r)!SJ#b!-!D!!)!Da%"6i!2Vr!!$kf!!!qYJ!!2VB!!$kf!!!qYJ!!2Vr!!$kr`!
88
!q[ri!2Vr%#B!!2Vr`!$krc$i!2Vr!*!%&3"!!"!"&!$&!!!"!!%!N!8#!*!&)J!
99
"!*!&"3!+!+-!V!#3"l3!2!$)!(B%"&0SEhF!!!%!!!!"2`!!!$m!!!"9!2!Xj"0
1010
i!!!!(!"'!!&%6%p(!!!!%N4*9%`!!!!H!J#3#`)!rrm!!!!C!*!%$N*bEhGcCA)
11-
JGfPZC'phVc!:
11+
JGfPZC'ph%ES:

Mac/Demo/building.html

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ <H2>What you need.</H2>
4444
related stuff.
4545

4646
<LI> You need MetroWerks CodeWarrior. The current distribution has
47-
been built with CodeWarrior Pro 1. Ordering information is
47+
been built with CodeWarrior Pro 2. Ordering information is
4848
available on the <A HREF="http://www.metrowerks.com/">MetroWerks
49-
homepage</A>. You might still be able to build Python with MPW or
50-
Think/Symantec C but you are basically on your own.
49+
homepage</A>. Building Python with MPW or Think/Symantec C is
50+
probably impossible without major surgery.
5151

5252
<LI> You need GUSI, the Grand Unified Socket Interface, by Matthias
5353
Neeracher. The original CWGUSI is
@@ -61,7 +61,7 @@ <H2>What you need.</H2>
6161

6262
<A NAME="optional">The MacPython project files are configured to
6363
include a plethora of optional modules</A>, and these modules need a
64-
number extra packages. To use the project files as-is you have to
64+
number of extra packages. To use the project files as-is you have to
6565
download these packages too. PPC and CFM68K Python have all such modules as
6666
dynamically loaded modules, so if you don't need a certain package it
6767
suffices to just refrain from builing the extension module. For static 68K
@@ -81,8 +81,8 @@ <H2>What you need.</H2>
8181

8282
<LI> Waste, a TextEdit replacement written by Marco Piovanelli, <A
8383
HREF="mailto:[email protected]">&lt;[email protected]&gt;</A>. Python
84-
was built using version 1.2, which you can obtain from <A
85-
HREF="ftp://rhino.harvard.edu/pub/dan/WASTE">&lt;ftp://rhino.harvard.edu/pub/dan/WASTE&gt;</A>
84+
was built using version 1.3, which you can obtain from <A
85+
HREF="http://www.boingo.com/waste">&lt;http://www.boingo.com/waste&gt;</A>
8686
and various other places.
8787

8888
<LI> Gdbm library for the Mac. Available from Jack's Mac software page at
@@ -121,12 +121,12 @@ <H2>Setting Up</H2>
121121
zlib
122122
libpng
123123
gdbm
124-
MoreFiles 1.4.3 (not needed by Python, only by tcl/tk)
125124
Python
126125
Tcl/Tk Folder
127126
tcl8.0
128127
tk8.0
129-
Waste 1.2 distribution (if you want waste)
128+
MoreFiles 1.4.3
129+
Waste 1.3 distribution (if you want waste)
130130
</PRE>
131131

132132
First build GUSI. If you didn't get the python-specific GUSI you have to
@@ -137,7 +137,7 @@ <H2>Setting Up</H2>
137137
Next, in
138138
<code>MoreFiles</code>, <code>libjpeg</code>, <code>pbmplus</code>,
139139
<code>zlib</code>, <code>libpng</code>, <code>gdbm</code>,
140-
and<code>libtiff</code> you build all projects. Sometimes the projects are in "mac"
140+
and<code>libtiff</code> you build all projects. Usually the projects are in "mac"
141141
subfolders, sometimes they are in the main folder. Tcl/tk is a special
142142
case, see below. Of course, if you are only interested in one of
143143
static 68K, CFM68K or PPC you can skip building the other libraries.
@@ -174,14 +174,7 @@ <H2><A NAME="tcltk">Building Tcl/Tk</H2>
174174
<H2>Building Waste</H2>
175175

176176
You do not need to build the Waste libraries, as Python includes the
177-
source modules themselves. You have to make one modification,
178-
though. In file <code>ICCFMGlue.c</code> in folder <code>Minimal IC
179-
APIs</code>, add the following lines:
180-
181-
<blockquote><pre><code>
182-
#include <Gestalt.h>
183-
#include <Errors.h>
184-
</code></pre></blockquote>
177+
source modules themselves.
185178

186179
<H2>The organization of the Python source tree</H2>
187180

@@ -190,19 +183,16 @@ <H2>The organization of the Python source tree</H2>
190183
folders:
191184

192185
<DL>
193-
<DT> build.mac68k.stand
194-
<DD> This is where you build static 68K interpreters.
195-
196-
<DT> build.mac68k.shared
197-
<DD> This is where you build the CFM68K shared library, interpreter
198-
and applet framework.
199-
200-
<DT> build.macppc.shared
201-
<DD> This is where you build the PPC shared library, interpreter and
202-
applet framework. You can also build the fat applet framework here.
186+
<DT> build.macstand
187+
<DD> This is where you build static 68K interpreter, and possibly (if
188+
you want them) static PPC and fat interpreters. There is also a project
189+
here that builds smaller versions of the static interpreter.
203190

204-
<DT> build.macppc.stand
205-
<DD> This is where you build a nonshared PPC interpreter (optional).
191+
<DT> build.mac
192+
<DD> This is where you build the CFM68K, PPC and fat shared library,
193+
interpreter and applet framework. The fat targets are deposited in the
194+
main folder (one level up), the others, which are intermediate results
195+
really, are left here.
206196

207197
<DT> Demo
208198
<DD> Demo programs that are not Mac-specific. Some of these may not
@@ -211,7 +201,7 @@ <H2>The organization of the Python source tree</H2>
211201
<DT> Extensions
212202
<DD> Extensions to the interpreter that are not Mac-specific. Contains
213203
only the <code>img</code> extension in this distribution. Extensions
214-
are <em>not</em> built here, as they are on Unix, but incorporated in
204+
are not always built here, as they are on Unix, but sometimes incorporated in
215205
the core interpreter or built as plugin modules.
216206

217207
<DT> Grammar

Mac/Demo/cgi.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,4 @@ <h2>A Minimal CGI script</h2>
7979
To test the script drop <code>cgitest.cgi.py</code> onto <code>mkapplet</code>,
8080
move the resulting <code>cgitest.cgi</code> to somewhere where it is reachable
8181
by NetPresenz, and point your web browser towards it.
82+
</BODY></HTML>

0 commit comments

Comments
 (0)