Ignore:
Timestamp:
Mar 19, 2014, 11:11:30 AM (11 years ago)
Author:
dmik
Message:

python: Update vendor to 2.7.6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/vendor/current/Mac/README

    r2 r388  
    99===================================
    1010
    11 * ``--enable-framework``
     11* ``--enable-framework[=DIR]``
    1212
    1313  If this argument is specified the build will create a Python.framework rather
     
    1616  information on frameworks.
    1717
     18  If the optional directory argument is specified the framework it installed
     19  into that directory. This can be used to install a python framework into
     20  your home directory::
     21
     22     $ configure --enable-framework=/Users/ronald/Library/Frameworks
     23     $ make && make install
     24
     25  This will install the framework itself in ``/Users/ronald/Library/Frameworks``,
     26  the applications in a subdirectory of ``/Users/ronald/Applications`` and the
     27  command-line tools in ``/Users/ronald/bin``.
     28
    1829* ``--with-framework-name=NAME``
    1930
     
    2334* ``--enable-universalsdk[=PATH]``
    2435
    25   Create a universal binary build of of Python. This can be used with both
     36  Create a universal binary build of Python. This can be used with both
    2637  regular and framework builds.
    2738
    28   The optional argument specifies with OSX SDK should be used to perform the
     39  The optional argument specifies which OSX SDK should be used to perform the
    2940  build. This defaults to ``/Developer/SDKs/MacOSX.10.4u.sdk``, specify
    3041  ``/`` when building on a 10.5 system, especially when building 64-bit code.
     
    3344  for more information.
    3445
    35 * ``--with-universal-archs=VALUE``
     46* ``--with-univeral-archs=VALUE``
    3647
    3748  Specify the kind of universal binary that should be created. This option is
     
    6071  $ make install
    6172
    62 This flag can be used a framework build of python, but also with a classic
     73This flag can be used with a framework build of python, but also with a classic
    6374unix build. Either way you will have to build python on Mac OS X 10.4 (or later)
    6475with Xcode 2.1 (or later). You also have to install the 10.4u SDK when
     
    89100  * ``intel``:    ``i386``, ``x86_64``
    90101
    91 To build a universal binary that includes a 64-bit architecture you must build
    92 on a system running OSX 10.5 or later. The ``all`` flavour can only be build on
     102To build a universal binary that includes a 64-bit architecture, you must build
     103on a system running OSX 10.5 or later. The ``all`` flavour can only be built on
    93104OSX 10.5.
    94105
     106The makefile for a framework build will install ``python32`` and ``pythonw32``
     107binaries when the universal architecures includes at least one 32-bit architecture
     108(that is, for all flavours but ``64-bit``).
     109
     110Running a specific archicture
     111.............................
     112
     113You can run code using a specific architecture using the ``arch`` command::
     114
     115   $ arch -i386 python
     116
     117Or to explicitly run in 32-bit mode, regardless of the machine hardware::
     118
     119   $ arch -i386 -ppc python
     120
     121NOTE: When you're using a framework install of Python this requires at least
     122Python 2.7 or 3.2, in earlier versions the python (and pythonw) commands are
     123wrapper tools that execute the real interpreter without ensuring that the
     124real interpreter runs with the same architecture.
    95125
    96126Building and using a framework-based Python on Mac OS X.
     
    180210
    181211"BuildApplet.app" creates an applet from a Python script. Drop the script on it
    182 and out comes a full-featured MacOS application. There is much more to this,
    183 to be supplied later. Some useful (but outdated) info can be found in
    184 Mac/Demo.
     212and out comes a full-featured MacOS application.  BuildApplet.app is now
     213deprecated and has been removed in Python 3.  As of OS X 10.8, Xcode 4 no
     214longer supplies the headers for the deprecated QuickDraw APIs used by
     215the EasyDialogs module making BuildApplet unusable as an app.  It will
     216not be built by the Mac/Makefile in this case.
    185217
    186218The commandline scripts /usr/local/bin/python and pythonw can be used to run
     
    192224Go to the directory "Mac/OSX/BuildScript". There you'll find a script
    193225"build-installer.py" that does all the work. This will download and build
    194 a number of 3th-party libaries, configures and builds a framework Python,
    195 installs it, creates the installer pacakge files and then packs this in a
     226a number of 3rd-party libaries, configures and builds a framework Python,
     227installs it, creates the installer package files and then packs this in a
    196228DMG image.
    197229
     
    205237from within the BuildScript directory. The script accepts a number of
    206238command-line arguments, run it with --help for more information.
     239
     240Configure warnings
     241==================
     242
     243The configure script sometimes emits warnings like the one below::
     244
     245   configure: WARNING: libintl.h: present but cannot be compiled
     246   configure: WARNING: libintl.h:     check for missing prerequisite headers?
     247   configure: WARNING: libintl.h: see the Autoconf documentation
     248   configure: WARNING: libintl.h:     section "Present But Cannot Be Compiled"
     249   configure: WARNING: libintl.h: proceeding with the preprocessor's result
     250   configure: WARNING: libintl.h: in the future, the compiler will take precedence
     251   configure: WARNING:     ## -------------------------------------- ##
     252   configure: WARNING:     ## Report this to http://bugs.python.org/ ##
     253   configure: WARNING:     ## -------------------------------------- ##
     254
     255This almost always means you are trying to build a universal binary for
     256Python and have libaries in ``/usr/local`` that don't contain the required
     257architectures. Temporarily move ``/usr/local`` aside to finish the build.
     258
     259
     260Uninstalling a framework install, including the binary installer
     261================================================================
     262
     263Uninstalling a framework can be done by manually removing all bits that got installed.
     264That's true for both installations from source and installations using the binary installer.
     265Sadly enough OSX does not have a central uninstaller.
     266
     267The main bit of a framework install is the framework itself, installed in
     268``/Library/Frameworks/Python.framework``. This can contain multiple versions
     269of Python, if you want to remove just one version you have to remove the
     270version-specific subdirectory: ``/Library/Frameworks/Python.framework/Versions/X.Y``.
     271If you do that, ensure that ``/Library/Frameworks/Python.framework/Versions/Current``
     272is a symlink that points to an installed version of Python.
     273
     274A framework install also installs some applications in ``/Applications/Python X.Y``,
     275
     276And lastly a framework installation installs files in ``/usr/local/bin``, all of
     277them symbolic links to files in ``/Library/Frameworks/Python.framework/Versions/X.Y/bin``.
    207278
    208279Odds and ends
     
    216287
    217288        Jack Jansen, Jack.Jansen@cwi.nl, 15-Jul-2004.
    218         Ronald Oussoren, RonaldOussoren@mac.com, 26-May-2006
     289        Ronald Oussoren, RonaldOussoren@mac.com, 30-April-2010
Note: See TracChangeset for help on using the changeset viewer.