Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(58)

Side by Side Diff: Mac/BuildScript/README.txt

Issue 15550: Trailing white spaces
Patch Set: Created 7 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Lib/turtledemo/demohelp.txt ('k') | Mac/BuildScript/resources/ReadMe.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Building a Python Mac OS X distribution 1 Building a Python Mac OS X distribution
2 ======================================= 2 =======================================
3 3
4 The ``build-install.py`` script creates Python distributions, including 4 The ``build-install.py`` script creates Python distributions, including
5 certain third-party libraries as necessary. It builds a complete 5 certain third-party libraries as necessary. It builds a complete
6 framework-based Python out-of-tree, installs it in a funny place with 6 framework-based Python out-of-tree, installs it in a funny place with
7 $DESTROOT, massages that installation to remove .pyc files and such, creates 7 $DESTROOT, massages that installation to remove .pyc files and such, creates
8 an Installer package from the installation plus other files in ``resources`` 8 an Installer package from the installation plus other files in ``resources``
9 and ``scripts`` and placed that on a ``.dmg`` disk image. 9 and ``scripts`` and placed that on a ``.dmg`` disk image.
10 10
11 As of Python 2.7.x and 3.2, PSF practice is to build two installer variants 11 As of Python 2.7.x and 3.2, PSF practice is to build two installer variants
12 for each release: 12 for each release:
13 13
14 1. 32-bit-only, i386 and PPC universal, capable on running on all machines 14 1. 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.3.9 through (at least) 10.6::
16 16
17 python build-installer.py \ 17 python build-installer.py \
18 --sdk-path=/Developer/SDKs/MacOSX10.4u.sdk \ 18 --sdk-path=/Developer/SDKs/MacOSX10.4u.sdk \
19 --universal-archs=32-bit \ 19 --universal-archs=32-bit \
20 --dep-target=10.3 20 --dep-target=10.3
21 # These are the current default options 21 # These are the current default options
22 22
23 - builds the following third-party libraries 23 - builds the following third-party libraries
24 24
25 * Bzip2 25 * Bzip2
26 * Zlib 1.2.3 26 * Zlib 1.2.3
27 * GNU Readline (GPL) 27 * GNU Readline (GPL)
28 * SQLite 3 28 * SQLite 3
29 * NCurses 29 * NCurses
30 * Oracle Sleepycat DB 4.8 (Python 2.x only) 30 * Oracle Sleepycat DB 4.8 (Python 2.x only)
31 31
32 - requires ActiveState ``Tcl/Tk 8.4`` (currently 8.4.19) to be installed for building 32 - requires ActiveState ``Tcl/Tk 8.4`` (currently 8.4.19) to be installed for building
33 33
34 - current target build environment: 34 - current target build environment:
35 35
36 * Mac OS X 10.5.8 PPC or Intel 36 * Mac OS X 10.5.8 PPC or Intel
37 * Xcode 3.1.4 (or later) 37 * Xcode 3.1.4 (or later)
38 * ``MacOSX10.4u`` SDK (later SDKs do not support PPC G3 processors) 38 * ``MacOSX10.4u`` SDK (later SDKs do not support PPC G3 processors)
39 * ``MACOSX_DEPLOYMENT_TARGET=10.3`` 39 * ``MACOSX_DEPLOYMENT_TARGET=10.3``
40 * Apple ``gcc-4.0`` 40 * Apple ``gcc-4.0``
41 * Python 2.n (n >= 4) for documentation build with Sphinx 41 * Python 2.n (n >= 4) for documentation build with Sphinx
42 42
43 - alternate build environments: 43 - alternate build environments:
44 44
45 * Mac OS X 10.4.11 with Xcode 2.5 45 * Mac OS X 10.4.11 with Xcode 2.5
46 * Mac OS X 10.6.6 with Xcode 3.2.5 46 * Mac OS X 10.6.6 with Xcode 3.2.5
47 - need to change ``/System/Library/Frameworks/{Tcl,Tk}.framework/Ver sion/Current`` to ``8.4`` 47 - need to change ``/System/Library/Frameworks/{Tcl,Tk}.framework/Ver sion/Current`` to ``8.4``
48 48
49 2. 64-bit / 32-bit, x86_64 and i386 universal, for OS X 10.6 (and later):: 49 2. 64-bit / 32-bit, x86_64 and i386 universal, for OS X 10.6 (and later)::
50 50
51 python build-installer.py \ 51 python build-installer.py \
52 --sdk-path=/Developer/SDKs/MacOSX10.6.sdk \ 52 --sdk-path=/Developer/SDKs/MacOSX10.6.sdk \
53 --universal-archs=intel \ 53 --universal-archs=intel \
54 --dep-target=10.6 54 --dep-target=10.6
55 55
56 - uses system-supplied versions of third-party libraries 56 - uses system-supplied versions of third-party libraries
57 57
58 * readline module links with Apple BSD editline (libedit) 58 * readline module links with Apple BSD editline (libedit)
59 * builds Oracle Sleepycat DB 4.8 (Python 2.x only) 59 * builds Oracle Sleepycat DB 4.8 (Python 2.x only)
60 60
61 - requires ActiveState Tcl/Tk 8.5.9 (or later) to be installed for building 61 - requires ActiveState Tcl/Tk 8.5.9 (or later) to be installed for building
62 62
63 - current target build environment: 63 - current target build environment:
64 64
65 * Mac OS X 10.6.6 (or later) 65 * Mac OS X 10.6.6 (or later)
66 * Xcode 3.2.5 (or later) 66 * Xcode 3.2.5 (or later)
67 * ``MacOSX10.6`` SDK 67 * ``MacOSX10.6`` SDK
68 * ``MACOSX_DEPLOYMENT_TARGET=10.6`` 68 * ``MACOSX_DEPLOYMENT_TARGET=10.6``
69 * Apple ``gcc-4.2`` 69 * Apple ``gcc-4.2``
70 * Python 2.n (n >= 4) for documentation build with Sphinx 70 * Python 2.n (n >= 4) for documentation build with Sphinx
71 71
72 - alternate build environments: 72 - alternate build environments:
73 73
74 * none 74 * none
(...skipping 24 matching lines...) Expand all
99 99
100 Running this script takes some time, it will not only build Python itself 100 Running this script takes some time, it will not only build Python itself
101 but also some 3th-party libraries that are needed for extensions. 101 but also some 3th-party libraries that are needed for extensions.
102 102
103 * When done the script will tell you where the DMG image is (by default 103 * When done the script will tell you where the DMG image is (by default
104 somewhere in ``/tmp/_py``). 104 somewhere in ``/tmp/_py``).
105 105
106 Building other universal installers 106 Building other universal installers
107 ................................... 107 ...................................
108 108
109 It is also possible to build a 4-way universal installer that runs on 109 It is also possible to build a 4-way universal installer that runs on
110 OS X Leopard or later:: 110 OS X Leopard or later::
111 111
112 python 2.6 /build-installer.py \ 112 python 2.6 /build-installer.py \
113 --dep-target=10.5 113 --dep-target=10.5
114 --universal-archs=all 114 --universal-archs=all
115 --sdk-path=/Developer/SDKs/MacOSX10.5.sdk 115 --sdk-path=/Developer/SDKs/MacOSX10.5.sdk
116 116
117 This requires that the deployment target is 10.5, and hence 117 This requires that the deployment target is 10.5, and hence
118 also that you are building on at least OS X 10.5. 4-way includes 118 also that you are building on at least OS X 10.5. 4-way includes
119 ``i386``, ``x86_64``, ``ppc``, and ``ppc64`` (G5). ``ppc64`` executable 119 ``i386``, ``x86_64``, ``ppc``, and ``ppc64`` (G5). ``ppc64`` executable
120 variants can only be run on G5 machines running 10.5. Note that, 120 variants can only be run on G5 machines running 10.5. Note that,
121 while OS X 10.6 is only supported on Intel-based machines, it is possible 121 while OS X 10.6 is only supported on Intel-based machines, it is possible
122 to run ``ppc`` (32-bit) executables unmodified thanks to the Rosetta ppc 122 to run ``ppc`` (32-bit) executables unmodified thanks to the Rosetta ppc
123 emulation in OS X 10.5 and 10.6. 123 emulation in OS X 10.5 and 10.6.
124 124
125 Other ``--universal-archs`` options are ``64-bit`` (``x86_64``, ``ppc64``), 125 Other ``--universal-archs`` options are ``64-bit`` (``x86_64``, ``ppc64``),
126 and ``3-way`` (``ppc``, ``i386``, ``x86_64``). None of these options 126 and ``3-way`` (``ppc``, ``i386``, ``x86_64``). None of these options
127 are regularly exercised; use at your own risk. 127 are regularly exercised; use at your own risk.
128 128
129 129
130 Testing 130 Testing
131 ------- 131 -------
132 132
133 Ideally, the resulting binaries should be installed and the test suite run 133 Ideally, the resulting binaries should be installed and the test suite run
134 on all supported OS X releases and architectures. As a practical matter, 134 on all supported OS X releases and architectures. As a practical matter,
135 that is generally not possible. At a minimum, variant 1 should be run on 135 that 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 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. 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.:: 138 Variant 2 should be run on 10.6 in both 32-bit and 64-bit modes.::
139 139
140 arch -i386 /usr/local/bin/pythonn.n -m test.regrtest -w -u all 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 141 arch -X86_64 /usr/local/bin/pythonn.n -m test.regrtest -w -u all
142 142
143 Certain tests will be skipped and some cause the interpreter to fail 143 Certain tests will be skipped and some cause the interpreter to fail
144 which will likely generate ``Python quit unexpectedly`` alert messages 144 which will likely generate ``Python quit unexpectedly`` alert messages
145 to be generated at several points during a test run. These can 145 to be generated at several points during a test run. These can
146 be ignored. 146 be ignored.
147 147
OLDNEW
« no previous file with comments | « Lib/turtledemo/demohelp.txt ('k') | Mac/BuildScript/resources/ReadMe.txt » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+