Changeset 391 for python/trunk/Doc/using/mac.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/using/mac.rst
r2 r391 26 26 ================================ 27 27 28 Mac OS X 10. 5 comes with Python 2.5.1pre-installed by Apple. If you wish, you28 Mac OS X 10.8 comes with Python 2.7 pre-installed by Apple. If you wish, you 29 29 are invited to install the most recent version of Python from the Python website 30 30 (http://www.python.org). A current "universal binary" build of Python, which … … 33 33 What you get after installing is a number of things: 34 34 35 * A :file:`MacPython 2. 5` folder in your :file:`Applications` folder. In here35 * A :file:`MacPython 2.7` folder in your :file:`Applications` folder. In here 36 36 you find IDLE, the development environment that is a standard part of official 37 37 Python distributions; PythonLauncher, which handles double-clicking Python … … 75 75 :program:`TextMate` (see http://macromates.com/). Other editors include 76 76 :program:`Gvim` (http://macvim.org) and :program:`Aquamacs` 77 (http://aquamacs.org ).77 (http://aquamacs.org/). 78 78 79 79 To run your script from the Terminal window you must make sure that … … 101 101 instead of :program:`python` to start such scripts. 102 102 103 With Python 2. 5, you can use either :program:`python` or :program:`pythonw`.103 With Python 2.7, you can use either :program:`python` or :program:`pythonw`. 104 104 105 105 … … 123 123 124 124 MacPython 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.125 introduction to using IDLE can be found at 126 http://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/index.html. 127 127 128 128 … … 134 134 There are several methods to install additional Python packages: 135 135 136 * http://pythonmac.org/packages/ contains selected compiled packages for Python137 2.5, 2.4, and 2.3.138 139 136 * Packages can be installed via the standard Python distutils mode (``python 140 137 setup.py install``). 141 138 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/. 143 141 144 142 … … 168 166 =========================================== 169 167 170 The "Build Applet" tool that is placed in the MacPython 2. 5folder is fine for168 The "Build Applet" tool that is placed in the MacPython 2.7 folder is fine for 171 169 packaging small Python scripts on your own machine to run as a standard Mac 172 170 application. This tool, however, is not robust enough to distribute Python … … 176 174 :program:`py2app`. More information on installing and using py2app can be found 177 175 at http://undefined.org/python/#py2app. 178 179 180 Application Scripting181 =====================182 183 Python can also be used to script other Mac applications via Apple's Open184 Scripting Architecture (OSA); see http://appscript.sourceforge.net. Appscript is185 a high-level, user-friendly Apple event bridge that allows you to control186 scriptable Mac OS X applications using ordinary Python scripts. Appscript makes187 Python a serious alternative to Apple's own *AppleScript* language for188 automating your Mac. A related package, *PyOSA*, is an OSA language component189 for the Python scripting language, allowing Python code to be executed by any190 OSA-enabled application (Script Editor, Mail, iTunes, etc.). PyOSA makes Python191 a full peer to AppleScript.192 176 193 177
Note:
See TracChangeset
for help on using the changeset viewer.