Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/using/mac.rst

    r2 r391  
    2626================================
    2727
    28 Mac OS X 10.5 comes with Python 2.5.1 pre-installed by Apple.  If you wish, you
     28Mac OS X 10.8 comes with Python 2.7 pre-installed by Apple.  If you wish, you
    2929are invited to install the most recent version of Python from the Python website
    3030(http://www.python.org).  A current "universal binary" build of Python, which
     
    3333What you get after installing is a number of things:
    3434
    35 * A :file:`MacPython 2.5` folder in your :file:`Applications` folder. In here
     35* A :file:`MacPython 2.7` folder in your :file:`Applications` folder. In here
    3636  you find IDLE, the development environment that is a standard part of official
    3737  Python distributions; PythonLauncher, which handles double-clicking Python
     
    7575:program:`TextMate` (see http://macromates.com/). Other editors include
    7676:program:`Gvim` (http://macvim.org) and :program:`Aquamacs`
    77 (http://aquamacs.org).
     77(http://aquamacs.org/).
    7878
    7979To run your script from the Terminal window you must make sure that
     
    101101instead of :program:`python` to start such scripts.
    102102
    103 With Python 2.5, you can use either :program:`python` or :program:`pythonw`.
     103With Python 2.7, you can use either :program:`python` or :program:`pythonw`.
    104104
    105105
     
    123123
    124124MacPython ships with the standard IDLE development environment. A good
    125 introduction to using IDLE can be found at http://hkn.eecs.berkeley.edu/
    126 dyoo/python/idle_intro/index.html.
     125introduction to using IDLE can be found at
     126http://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/index.html.
    127127
    128128
     
    134134There are several methods to install additional Python packages:
    135135
    136 * http://pythonmac.org/packages/ contains selected compiled packages for Python
    137   2.5, 2.4, and 2.3.
    138 
    139136* Packages can be installed via the standard Python distutils mode (``python
    140137  setup.py install``).
    141138
    142 * Many packages can also be installed via the :program:`setuptools` extension.
     139* Many packages can also be installed via the :program:`setuptools` extension
     140  or :program:`pip` wrapper, see http://www.pip-installer.org/.
    143141
    144142
     
    168166===========================================
    169167
    170 The "Build Applet" tool that is placed in the MacPython 2.5 folder is fine for
     168The "Build Applet" tool that is placed in the MacPython 2.7 folder is fine for
    171169packaging small Python scripts on your own machine to run as a standard Mac
    172170application. This tool, however, is not robust enough to distribute Python
     
    176174:program:`py2app`. More information on installing and using py2app can be found
    177175at http://undefined.org/python/#py2app.
    178 
    179 
    180 Application Scripting
    181 =====================
    182 
    183 Python can also be used to script other Mac applications via Apple's Open
    184 Scripting Architecture (OSA); see http://appscript.sourceforge.net. Appscript is
    185 a high-level, user-friendly Apple event bridge that allows you to control
    186 scriptable Mac OS X applications using ordinary Python scripts. Appscript makes
    187 Python a serious alternative to Apple's own *AppleScript* language for
    188 automating your Mac. A related package, *PyOSA*, is an OSA language component
    189 for the Python scripting language, allowing Python code to be executed by any
    190 OSA-enabled application (Script Editor, Mail, iTunes, etc.). PyOSA makes Python
    191 a full peer to AppleScript.
    192176
    193177
Note: See TracChangeset for help on using the changeset viewer.