• Home
  • Raw
  • Download

Lines Matching +full:build +full:- +full:mac +full:- +full:intel

1 Building a Python Mac OS X distribution
5 -------
7 The instructions in this README are incomplete and not up-to-date.
9 package from the now obsolete bundle-format installer package produced
10 by ``build-installer.py``.
12 The ``build-installer.py`` script creates Python distributions, including
13 certain third-party libraries as necessary. It builds a complete
14 framework-based Python out-of-tree, installs it in a funny place with
23 Beginning with Python 2.7.9, PSF practice is to build two installer variants
28 transforming the output build artifacts into signed flat packages is not
29 yet integrated into ``build-installer.py``.
31 1. 32-bit-only, i386 and PPC universal, capable on running on all machines
32 supported by Mac OS X 10.5 through (at least) 10.10::
34 /usr/bin/python build-installer.py \
35 --sdk-path=/Developer/SDKs/MacOSX10.5.sdk \
36 --universal-archs=32-bit \
37 --dep-target=10.5
39 - builds the following third-party libraries
46 - uses system-supplied versions of third-party libraries
50 - requires ActiveState ``Tcl/Tk 8.4`` (currently 8.4.20) to be installed for building
52 - recommended build environment:
54 * Mac OS X 10.5.8 Intel or PPC
58 * Apple ``gcc-4.2``
59 * bootstrap non-framework Python 2.7 for documentation build with
62 - alternate build environments:
64 * Mac OS X 10.6.8 with Xcode 3.2.6
65- need to change ``/System/Library/Frameworks/{Tcl,Tk}.framework/Version/Current`` to ``8.4``
66 * Note Xcode 4.* does not support building for PPC so cannot be used for this build
68 2. 64-bit / 32-bit, x86_64 and i386 universal, for OS X 10.6 (and later)::
70 /usr/bin/python build-installer.py \
71 --sdk-path=/Developer/SDKs/MacOSX10.6.sdk \
72 --universal-archs=intel \
73 --dep-target=10.6
75 - builds the following third-party libraries
81 - uses system-supplied versions of third-party libraries
86 - requires ActiveState Tcl/Tk 8.5.15 (or later) to be installed for building
88 - recommended build environment:
90 * Mac OS X 10.6.8 (or later)
94 * Apple ``gcc-4.2``
95 * bootstrap non-framework Python 2.7 for documentation build with
98 - alternate build environments:
101 ``llvm-gcc-4.2.1`` has been found to miscompile Python 3.3.x and
102 produce a non-functional Python executable. As it appears to be
106 production-ready in the most recent Xcode 5 releases, the versions
109 that the Xcode 3 gcc-4.2 compiler has had.
113 ---------------------
117 interfere with the build.
123 assumes there is an externally-provided ``sphinx-build`` and requires at
125 build a 2.7.9 or later installer on OS X 10.5 using the Apple-supplied
128 * It is safest to start each variant build with an empty source directory
134 sudo rm -rf /Library/Frameworks/Python.framework/Versions/n.n
138 ----------
140 Here are the steps you need to follow to build a Python installer:
142 * Run ``build-installer.py``. Optionally you can pass a number of arguments
144 ``build-installer.py`` for its usage.
146 Running this script takes some time, it will not only build Python itself
147 but also some 3rd-party libraries that are needed for extensions.
155 It is also possible to build a 4-way universal installer that runs on
158 /usr/bin/python /build-installer.py \
159 --dep-target=10.5
160 --universal-archs=all
161 --sdk-path=/Developer/SDKs/MacOSX10.5.sdk
164 also that you are building on at least OS X 10.5. 4-way includes
167 while OS X 10.6 is only supported on Intel-based machines, it is possible
168 to run ``ppc`` (32-bit) executables unmodified thanks to the Rosetta ppc
169 emulation in OS X 10.5 and 10.6. The 4-way installer variant must be
172 Other ``--universal-archs`` options are ``64-bit`` (``x86_64``, ``ppc64``),
173 and ``3-way`` (``ppc``, ``i386``, ``x86_64``). None of these options
178 -------
183 a PPC G4 system with OS X 10.5 and at least one Intel system running OS X
185 systems in both 32-bit and 64-bit modes.::
187 /usr/local/bin/pythonn.n -m test -w -u all,-largefile
188 /usr/local/bin/pythonn.n-32 -m test -w -u all
196 functional. Double-click on the IDLE app icon in ``/Applications/Pythonn.n``.