mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	merge with 3.3
This commit is contained in:
		
						commit
						94a9a2da32
					
				
					 1 changed files with 10 additions and 11 deletions
				
			
		| 
						 | 
					@ -17,14 +17,15 @@ the IDE and the Package Manager that are worth pointing out.
 | 
				
			||||||
Getting and Installing MacPython
 | 
					Getting and Installing MacPython
 | 
				
			||||||
================================
 | 
					================================
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Mac OS X 10.5 comes with Python 2.5.1 pre-installed by Apple.  If you wish, you
 | 
					Mac OS X 10.8 comes with Python 2.7 pre-installed by Apple.  If you wish, you
 | 
				
			||||||
are invited to install the most recent version of Python from the Python website
 | 
					are invited to install the most recent version of Python 3 from the Python
 | 
				
			||||||
(http://www.python.org).  A current "universal binary" build of Python, which
 | 
					website (http://www.python.org).  A current "universal binary" build of Python,
 | 
				
			||||||
runs natively on the Mac's new Intel and legacy PPC CPU's, is available there.
 | 
					which runs natively on the Mac's new Intel and legacy PPC CPU's, is available
 | 
				
			||||||
 | 
					there.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
What you get after installing is a number of things:
 | 
					What you get after installing is a number of things:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* A :file:`MacPython 2.5` folder in your :file:`Applications` folder. In here
 | 
					* A :file:`MacPython 3.4` folder in your :file:`Applications` folder. In here
 | 
				
			||||||
  you find IDLE, the development environment that is a standard part of official
 | 
					  you find IDLE, the development environment that is a standard part of official
 | 
				
			||||||
  Python distributions; PythonLauncher, which handles double-clicking Python
 | 
					  Python distributions; PythonLauncher, which handles double-clicking Python
 | 
				
			||||||
  scripts from the Finder; and the "Build Applet" tool, which allows you to
 | 
					  scripts from the Finder; and the "Build Applet" tool, which allows you to
 | 
				
			||||||
| 
						 | 
					@ -92,7 +93,7 @@ aware of: programs that talk to the Aqua window manager (in other words,
 | 
				
			||||||
anything that has a GUI) need to be run in a special way. Use :program:`pythonw`
 | 
					anything that has a GUI) need to be run in a special way. Use :program:`pythonw`
 | 
				
			||||||
instead of :program:`python` to start such scripts.
 | 
					instead of :program:`python` to start such scripts.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
With Python 2.5, you can use either :program:`python` or :program:`pythonw`.
 | 
					With Python 3.4, you can use either :program:`python` or :program:`pythonw`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Configuration
 | 
					Configuration
 | 
				
			||||||
| 
						 | 
					@ -125,13 +126,11 @@ Installing Additional Python Packages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
There are several methods to install additional Python packages:
 | 
					There are several methods to install additional Python packages:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* http://pythonmac.org/packages/ contains selected compiled packages for Python
 | 
					 | 
				
			||||||
  2.5, 2.4, and 2.3.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
* Packages can be installed via the standard Python distutils mode (``python
 | 
					* Packages can be installed via the standard Python distutils mode (``python
 | 
				
			||||||
  setup.py install``).
 | 
					  setup.py install``).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Many packages can also be installed via the :program:`setuptools` extension.
 | 
					* Many packages can also be installed via the :program:`setuptools` extension
 | 
				
			||||||
 | 
					  or :program:`pip` wrapper, see http://www.pip-installer.org/.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
GUI Programming on the Mac
 | 
					GUI Programming on the Mac
 | 
				
			||||||
| 
						 | 
					@ -159,7 +158,7 @@ http://www.riverbankcomputing.co.uk/software/pyqt/intro.
 | 
				
			||||||
Distributing Python Applications on the Mac
 | 
					Distributing Python Applications on the Mac
 | 
				
			||||||
===========================================
 | 
					===========================================
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The "Build Applet" tool that is placed in the MacPython 2.5 folder is fine for
 | 
					The "Build Applet" tool that is placed in the MacPython 3.4 folder is fine for
 | 
				
			||||||
packaging small Python scripts on your own machine to run as a standard Mac
 | 
					packaging small Python scripts on your own machine to run as a standard Mac
 | 
				
			||||||
application. This tool, however, is not robust enough to distribute Python
 | 
					application. This tool, however, is not robust enough to distribute Python
 | 
				
			||||||
applications to other users.
 | 
					applications to other users.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue