annotate Mac/BuildScript/README.txt @ 58765:2ba7677bfa95 legacy-trunk

testCopysign was defined twice in test_math; combine the definitions
author Mark Dickinson <dickinsm@gmail.com>
date Sat, 06 Feb 2010 23:11:25 +0000
parents 573085015aa8
children d3b4fa2dd728
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38252
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
1 Building a MacPython distribution
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
2 =================================
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
3
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
4 The ``build-install.py`` script creates MacPython distributions, including
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
5 sleepycat db4, sqlite3 and readline support. It builds a complete
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
6 framework-based Python out-of-tree, installs it in a funny place with
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
7 $DESTROOT, massages that installation to remove .pyc files and such, creates
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
8 an Installer package from the installation plus other files in ``resources``
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
9 and ``scripts`` and placed that on a ``.dmg`` disk image.
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
10
39350
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
11 Prerequisites
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
12 -------------
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
13
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
14 * A MacOS X 10.4 (or later)
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
15
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
16 * XCode 2.2 (or later), with the universal SDK
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
17
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
18 * No Fink (in ``/sw``) or DarwinPorts (in ``/opt/local``), those could
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
19 interfere with the build.
38252
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
20
39350
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
21 * The documentation for the release must be available on python.org
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
22 because it is included in the installer.
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
23
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
24
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
25 The Recipe
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
26 ----------
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
27
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
28 Here are the steps you need to follow to build a MacPython installer:
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
29
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
30 * Run ``./build-installer.py``. Optionally you can pass a number of arguments
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
31 to specify locations of various files. Please see the top of
38252
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
32 ``build-installer.py`` for its usage.
39350
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
33
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
34 Running this script takes some time, I will not only build Python itself
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
35 but also some 3th-party libraries that are needed for extensions.
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
36
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
37 * When done the script will tell you where the DMG image is (by default
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
38 somewhere in ``/tmp/_py``).
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
39
52460
573085015aa8 Merged revisions 70737 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 39350
diff changeset
40 Building a 4-way universal installer
573085015aa8 Merged revisions 70737 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 39350
diff changeset
41 ....................................
573085015aa8 Merged revisions 70737 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 39350
diff changeset
42
573085015aa8 Merged revisions 70737 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 39350
diff changeset
43 It is also possible to build a 4-way universal installer that runs on
573085015aa8 Merged revisions 70737 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 39350
diff changeset
44 OSX Leopard or later::
573085015aa8 Merged revisions 70737 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 39350
diff changeset
45
573085015aa8 Merged revisions 70737 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 39350
diff changeset
46 $ ./build-installer.py --dep-target=10.5 --universal-archs=all --sdk=/
573085015aa8 Merged revisions 70737 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 39350
diff changeset
47
573085015aa8 Merged revisions 70737 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 39350
diff changeset
48 This requires that the deployment target is 10.5 (or later), and hence
573085015aa8 Merged revisions 70737 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 39350
diff changeset
49 also that your building on at least OSX 10.5.
573085015aa8 Merged revisions 70737 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 39350
diff changeset
50
39350
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
51 Testing
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
52 -------
38252
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
53
39350
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
54 The resulting binaries should work on MacOSX 10.3.9 or later. I usually run
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
55 the installer on a 10.3.9, a 10.4.x PPC and a 10.4.x Intel system and then
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
56 run the testsuite to make sure.
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
57
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
58
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
59 Announcements
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
60 -------------
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
61
59762e796281 Updated documentation for the script that builds the OSX installer.
Ronald Oussoren <ronaldoussoren@mac.com>
parents: 38645
diff changeset
62 (This is mostly of historic interest)
38252
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
63
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
64 When all is done, announcements can be posted to at least the following
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
65 places:
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
66 - pythonmac-sig@python.org
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
67 - python-dev@python.org
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
68 - python-announce@python.org
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
69 - archivist@info-mac.org
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
70 - adcnews@apple.com
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
71 - news@macnn.com
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
72 - http://www.macupdate.com
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
73 - http://guide.apple.com/usindex.lasso
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
74 - http://www.apple.com/downloads/macosx/submit
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
75 - http://www.versiontracker.com/ (userid Jack.Jansen@oratrix.com)
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
76 - http://www.macshareware.net (userid jackjansen)
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
77
75bdd44f85dc An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
78 Also, check out Stephan Deibels http://pythonology.org/market contact list