Lines Matching +full:x +full:- +full:versions

2 Python on Mac OS X README
6 Jack Jansen (2004-07),
7 Ronald Oussoren (2010-04),
8 Ned Deily (2014-05)
12 This document provides a quick overview of some Mac OS X specific features in
15 OS X specific arguments to configure
18 * ``--enable-framework[=DIR]``
22 _`Building and using a framework-based Python on Mac OS X` for more
29 $ ./configure --enable-framework=/Users/ronald/Library/Frameworks
34 command-line tools in ``/Users/ronald/bin``.
36 * ``--with-framework-name=NAME``
39 is only valid when ``--enable-framework`` is specified.
41 * ``--enable-universalsdk[=PATH]``
46 The optional argument specifies which OS X SDK should be used to perform the
48 the Xcode default MacOS X SDK, otherwise ``/Developer/SDKs/MacOSX.10.4u.sdk``
49 if available or ``/`` if not. When building on OS X 10.5 or later, you can
51 OS X 10.9, you should install the optional system headers from the Command
52 Line Tools component using ``xcode-select``::
54 $ sudo xcode-select --install
56 See the section _`Building and using a universal binary of Python on Mac OS X`
59 * ``--with-universal-archs=VALUE``
62 only valid when ``--enable-universalsdk`` is specified. The default is
63 ``32-bit`` if a building with a SDK that supports PPC, otherwise defaults
67 Building and using a universal binary of Python on Mac OS X
71 -----------------------------
74 CPU architecture. A universal OS X executable file or library combines the
75 architecture-specific code into one file and can therefore run at native
77 OS X 10.4 to add support for Intel-based Macs to the existing PowerPC (PPC)
78 machines. In OS X 10.5 support was extended to 64-bit Intel and 64-bit PPC
80 of architectures depending on the build tools and OS X version in use.
83 ------------------------------------
85 You can enable universal binaries by specifying the "--enable-universalsdk"
88 $ ./configure --enable-universalsdk
93 unix build. Universal builds were first supported with OS X 10.4 with Xcode 2.1
94 and the 10.4u SDK. Starting with Xcode 3 and OS X 10.5, more configurations are
98 Apple-supplied compilers and other build tools included in Apple's Xcode
100 component appropriate for the OS X release you are running on. See the
108 the default is a 32-bit only binary (i386 and ppc) in build environments that
110 Intel-32/-64-bit binary (i386 and X86_64) in build environments that do not
112 using the configure option ``--with-universal-archs=VALUE``. The following
117 * ``intel-32``: ``i386``
119 * ``intel-64``: ``x86_64``
121 * ``32-bit``: ``ppc``, ``i386``
123 * ``3-way``: ``i386``, ``x86_64``, ``ppc``
125 * ``64-bit``: ``ppc64``, ``x86_64``
129 To build a universal binary that includes a 64-bit architecture, you must build
130 on a system running OS X 10.5 or later. The ``all`` and ``64-bit`` flavors can
132 OS X 10.5. Although legacy ``ppc`` support was included with Xcode 3 on OS X
133 10.6, it was removed in Xcode 4, versions of which were released on OS X 10.6
134 and which is the standard for OS X 10.7. To summarize, the
135 following combinations of SDKs and universal-archs flavors are available:
137 * 10.4u SDK with Xcode 2 supports ``32-bit`` only
139 * 10.5 SDK with Xcode 3.1.x supports all flavors
141 * 10.6 SDK with Xcode 3.2.x supports ``intel``, ``3-way``, and ``32-bit``
149 The makefile for a framework build will also install ``python2.7-32``
150 binaries when the universal architecture includes at least one 32-bit
151 architecture (that is, for all flavors but ``64-bit``).
158 $ arch -i386 python
160 Or to explicitly run in 32-bit mode, regardless of the machine hardware::
162 $ arch -i386 -ppc python
165 Python 2.7 or 3.2, in earlier versions the python (and pythonw) commands are
172 subprocesses also run in 32-bit-mode if the main interpreter does, use
173 a ``python2.7-32`` binary and use the value of ``sys.executable`` as the
176 Building and using a framework-based Python on Mac OS X.
181 --------------------------------------------------------------------------
184 exception of X11/XDarwin-based GUI toolkits all GUI programs need to be run
185 from a Mac OS X application bundle (".app").
190 A second reason for using frameworks is that they put Python-related items in
199 ------------------------------------------------------------------
205 Versions/Current and you will see the familiar bin and lib directories.
208 ----------------------------
210 Yes, probably. If you want Tkinter support you need to get the OS X AquaTk
211 distribution, this is installed by default on Mac OS X 10.4 or later. Be
212 aware, though, that the Cocoa-based AquaTk's supplied starting with OS X
214 installing a newer version before building on OS X 10.6 or later, such as
223 -------------------------------------
225 This directory contains a Makefile that will create a couple of python-related
226 applications (full-blown OS X .app applications, that is) in
235 1. ./configure --enable-framework
247 by configuring with ``--enable-framework=$HOME/Library/Frameworks``.
249 at ``$HOME/Applications/Python-<VERSION>`` and ``$HOME/bin``.
252 frameworkinstall is composed of a couple of sub-targets that install the
267 double-click a .py, .pyc or .pyw file. For the first two it creates a Terminal
268 window and runs the scripts with the normal command-line Python. For the
270 GUI-things. Keep the ``Option`` key depressed while dragging or double-clicking
275 and out comes a full-featured Mac OS X application. "Build Applet.app" is now
276 deprecated and has been removed in Python 3. As of OS X 10.8, Xcode 4 no
281 The program ``pythonx.x`` runs python scripts from the command line. Various
282 compatibility aliases are also installed, including ``pythonwx.x`` which
283 in early releases of Python on OS X was required to run GUI programs. In
284 current releases, the ``pythonx.x`` and ``pythonwx.x`` commands are identical
285 and the use of ``pythonwx.x`` should be avoided as it has been removed in
286 current versions of Python 3.
293 ``build-installer.py`` that does all the work. This will download and build
294 a number of 3rd-party libaries, configures and builds a framework Python,
302 script on Mac OS X 10.4 or later and with Xcode 2.1 or later installed.
304 available out of the box with OS X 10.4 so you may have to install
305 additional software beyond what is provided with Xcode 2. OS X 10.5
308 versions of Xcode to build installers that are compatible with older systems
313 minimum OS X version supported.
320 command-line arguments, run it with --help for more information.
333 configure: WARNING: ## -------------------------------------- ##
335 configure: WARNING: ## -------------------------------------- ##
347 OS X does not provide a central uninstaller.
350 ``/Library/Frameworks/Python.framework``. This can contain multiple versions
352 version-specific subdirectory: ``/Library/Frameworks/Python.framework/Versions/X.Y``.
353 If you do that, ensure that ``/Library/Frameworks/Python.framework/Versions/Current``
356 A framework install also installs some applications in ``/Applications/Python X.Y``,
359 them symbolic links to files in ``/Library/Frameworks/Python.framework/Versions/X.Y/bin``.
367 * http://www.python.org/community/sigs/current/pythonmac-sig/