@@ -8,70 +8,125 @@ $DESTROOT, massages that installation to remove .pyc files and such, creates
88an Installer package from the installation plus other files in ``resources``
99and ``scripts`` and placed that on a ``.dmg`` disk image.
1010
11- As of Python 2.7.x and 3.2 , PSF practice is to build two installer variants
12- for each release:
11+ As of Python 3.3.0 , PSF practice is to build two installer variants
12+ for each release.
1313
14141. 32-bit-only, i386 and PPC universal, capable on running on all machines
15- supported by Mac OS X 10.3.9 through (at least) 10.6 ::
15+ supported by Mac OS X 10.5 through (at least) 10.8 ::
1616
17- python build-installer.py \
18- --sdk-path=/Developer/SDKs/MacOSX10.4u .sdk \
17+ /usr/bin/ python build-installer.py \
18+ --sdk-path=/Developer/SDKs/MacOSX10.5 .sdk \
1919 --universal-archs=32-bit \
20- --dep-target=10.3
21- # These are the current default options
20+ --dep-target=10.5
2221
2322 - builds the following third-party libraries
2423
25- * Bzip2
26- * Zlib 1.2.3
27- * GNU Readline (GPL)
28- * SQLite 3
29- * NCurses
30- * Oracle Sleepycat DB 4.8 (Python 2.x only)
24+ * NCurses 5.9 (http://bugs.python.org/issue15037)
25+ * SQLite 3.7.13
26+ * XZ 5.0.3
27+
28+ - uses system-supplied versions of third-party libraries
29+
30+ * readline module links with Apple BSD editline (libedit)
3131
3232 - requires ActiveState ``Tcl/Tk 8.4`` (currently 8.4.19) to be installed for building
3333
34- - current target build environment:
35-
36- * Mac OS X 10.5.8 PPC or Intel
37- * Xcode 3.1.4 (or later)
38- * ``MacOSX10.4u `` SDK (later SDKs do not support PPC G3 processors)
39- * ``MACOSX_DEPLOYMENT_TARGET=10.3 ``
40- * Apple ``gcc-4.0 ``
41- * Python 2.n (n >= 4) for documentation build with Sphinx
34+ - recommended build environment:
35+
36+ * Mac OS X 10.5.8 Intel or PPC
37+ * Xcode 3.1.4
38+ * ``MacOSX10.5 `` SDK
39+ * ``MACOSX_DEPLOYMENT_TARGET=10.5 ``
40+ * Apple ``gcc-4.2 ``
41+ * system Python 2.5 for documentation build with Sphinx
4242
4343 - alternate build environments:
4444
45- * Mac OS X 10.4.11 with Xcode 2.5
46- * Mac OS X 10.6.6 with Xcode 3.2.5
45+ * Mac OS X 10.6.8 with Xcode 3.2.6
4746 - need to change ``/System/Library/Frameworks/{Tcl,Tk}.framework/Version/Current`` to ``8.4``
47+ * Note Xcode 4.* does not support building for PPC so cannot be used for this build
4848
49492. 64-bit / 32-bit, x86_64 and i386 universal, for OS X 10.6 (and later)::
5050
51- python build-installer.py \
51+ /usr/bin/ python build-installer.py \
5252 --sdk-path=/Developer/SDKs/MacOSX10.6.sdk \
5353 --universal-archs=intel \
5454 --dep-target=10.6
5555
56+ - builds the following third-party libraries
57+
58+ * NCurses 5.9 (http://bugs.python.org/issue15037)
59+ * SQLite 3.7.13
60+ * XZ 5.0.3
61+
5662 - uses system-supplied versions of third-party libraries
57-
63+
5864 * readline module links with Apple BSD editline (libedit)
59- * builds Oracle Sleepycat DB 4.8 (Python 2.x only)
6065
6166 - requires ActiveState Tcl/Tk 8.5.9 (or later) to be installed for building
6267
63- - current target build environment:
64-
65- * Mac OS X 10.6.6 (or later)
66- * Xcode 3.2.5 (or later)
68+ - recommended build environment:
69+
70+ * Mac OS X 10.6.8 (or later)
71+ * Xcode 3.2.6
6772 * ``MacOSX10.6`` SDK
6873 * ``MACOSX_DEPLOYMENT_TARGET=10.6``
6974 * Apple ``gcc-4.2``
70- * Python 2.n (n >= 4) for documentation build with Sphinx
75+ * system Python 2.6 for documentation build with Sphinx
7176
7277 - alternate build environments:
7378
74- * none
79+ * none. Xcode 4.x currently supplies two C compilers.
80+ ``llvm-gcc-4.2.1`` has been found to miscompile Python 3.3.x and
81+ produce a non-functional Python executable. As it appears to be
82+ considered a migration aid by Apple and is not likely to be fixed,
83+ its use should be avoided. The other compiler, ``clang``, has been
84+ undergoing rapid development. While it appears to have become
85+ production-ready in the most recent Xcode 4 releases (Xcode 4.4.1
86+ as of this writing), there are still some open issues when
87+ building Python and there has not yet been the level of exposure in
88+ production environments that the Xcode 3 gcc-4.2 compiler has had.
89+
90+
91+ * For Python 2.7.x and 3.2.x, the 32-bit-only installer was configured to
92+ support Mac OS X 10.3.9 through (at least) 10.6. Because it is
93+ believed that there are few systems still running OS X 10.3 or 10.4
94+ and because it has become increasingly difficult to test and
95+ support the differences in these earlier systems, as of Python 3.3.0 the PSF
96+ 32-bit installer no longer supports them. For reference in building such
97+ an installer yourself, the details are::
98+
99+ /usr/bin/python build-installer.py \
100+ --sdk-path=/Developer/SDKs/MacOSX10.4u.sdk \
101+ --universal-archs=32-bit \
102+ --dep-target=10.3
103+
104+ - builds the following third-party libraries
105+
106+ * Bzip2
107+ * NCurses
108+ * GNU Readline (GPL)
109+ * SQLite 3
110+ * XZ
111+ * Zlib 1.2.3
112+ * Oracle Sleepycat DB 4.8 (Python 2.x only)
113+
114+ - requires ActiveState ``Tcl/Tk 8.4`` (currently 8.4.19) to be installed for building
115+
116+ - recommended build environment:
117+
118+ * Mac OS X 10.5.8 PPC or Intel
119+ * Xcode 3.1.4 (or later)
120+ * ``MacOSX10.4u`` SDK (later SDKs do not support PPC G3 processors)
121+ * ``MACOSX_DEPLOYMENT_TARGET=10.3``
122+ * Apple ``gcc-4.0``
123+ * system Python 2.5 for documentation build with Sphinx
124+
125+ - alternate build environments:
126+
127+ * Mac OS X 10.6.8 with Xcode 3.2.6
128+ - need to change ``/System/Library/Frameworks/{Tcl,Tk}.framework/Version/Current`` to ``8.4``
129+
75130
76131
77132General Prerequisites
@@ -87,6 +142,11 @@ General Prerequisites
87142* It is safest to start each variant build with an empty source directory
88143 populated with a fresh copy of the untarred source.
89144
145+ * It is recommended that you remove any existing installed version of the
146+ Python being built::
147+
148+ sudo rm -rf /Library/Frameworks/Python.framework/Versions/n.n
149+
90150
91151The Recipe
92152----------
@@ -107,9 +167,9 @@ Building other universal installers
107167...................................
108168
109169It is also possible to build a 4-way universal installer that runs on
110- OS X Leopard or later::
170+ OS X 10.5 Leopard or later::
111171
112- python 2.6 /build-installer.py \
172+ /usr/bin/python /build-installer.py \
113173 --dep-target=10.5
114174 --universal-archs=all
115175 --sdk-path=/Developer/SDKs/MacOSX10.5.sdk
@@ -120,7 +180,8 @@ also that you are building on at least OS X 10.5. 4-way includes
120180variants can only be run on G5 machines running 10.5. Note that,
121181while OS X 10.6 is only supported on Intel-based machines, it is possible
122182to run ``ppc`` (32-bit) executables unmodified thanks to the Rosetta ppc
123- emulation in OS X 10.5 and 10.6.
183+ emulation in OS X 10.5 and 10.6. The 4-way installer variant must be
184+ built with Xcode 3. It is not regularly built or tested.
124185
125186Other ``--universal-archs`` options are ``64-bit`` (``x86_64``, ``ppc64``),
126187and ``3-way`` (``ppc``, ``i386``, ``x86_64``). None of these options
@@ -133,15 +194,21 @@ Testing
133194Ideally, the resulting binaries should be installed and the test suite run
134195on all supported OS X releases and architectures. As a practical matter,
135196that is generally not possible. At a minimum, variant 1 should be run on
136- at least one Intel, one PPC G4, and one PPC G3 system and one each of
137- OS X 10.6 , 10.5 , 10.4, and 10.3.9. Not all tests run on 10.3.9.
138- Variant 2 should be run on 10.6 in both 32-bit and 64-bit modes.::
197+ a PPC G4 system with OS X 10.5 and at least one Intel system running OS X
198+ 10.8 , 10.7 , 10.6, or 10.5. Variant 2 should be run on 10.8, 10.7, and 10.6
199+ systems in both 32-bit and 64-bit modes.::
139200
140- arch -i386 /usr/local/bin/pythonn.n -m test.regrtest -w -u all
141- arch -X86_64 /usr/local/bin/pythonn.n -m test.regrtest -w -u all
201+ /usr/local/bin/pythonn.n -m test -w -u all,-largefile
202+ /usr/local/bin/pythonn.n-32 -m test -w -u all
142203
143204Certain tests will be skipped and some cause the interpreter to fail
144205which will likely generate ``Python quit unexpectedly`` alert messages
145- to be generated at several points during a test run. These can
146- be ignored.
206+ to be generated at several points during a test run. These are normal
207+ during testing and can be ignored.
208+
209+ It is also recommend to launch IDLE and verify that it is at least
210+ functional. Double-click on the IDLE app icon in ``/Applications/Pythonn.n``.
211+ It should also be tested from the command line::
212+
213+ /usr/local/bin/idlen.n
147214
0 commit comments