##// END OF EJS Templates
updated installation instructions for OS X 10.5 (including readline egg and SVN 1.5 patch instructions from wiki http://ipython.scipy.org/moin/InstallationOSXLeopard
Barry Wark -
Show More
@@ -68,29 +68,25 b' Mac OSX information'
68 68 -------------------
69 69
70 70 Under OSX, there is a choice you need to make. Apple ships its own build
71 of Python, which lives in the core OSX filesystem hierarchy. You can
71 of Python, which lives in the core OSX filesystem hierarchy (/System/Library/Frameworks/Python.framework). You can
72 72 also manually install a separate Python, either purely by hand
73 (typically in /usr/local) or by using Fink, which puts everything under
74 /sw. Which route to follow is a matter of personal preference, as I've
75 seen users who favor each of the approaches. Here I will simply list the
76 known installation issues under OSX, along with their solutions.
73 (typically in /usr/local), by using Fink or DarwinPorts, which put everything under /sw or /opt respectively, or using the python.org "Framework" python, which installs a framework similar to the system python in /Library/Frameworks. The Enthought Python Distribution (http://www.enthought.com/products/epd.php), uses the python.org "Framework" python and thus also installs into /Library/Frameworks. Which route to follow is a matter of personal preference, as I've seen users who favor each of the approaches.
74
75 For users of OS X 10.5 (Leopard), the system python installation contains support for `DTrace`_, a kernel-level profiling system integrated into OS X 10.5. This facility provides significant advantage to developers and users interested in high-performance computing by using the system python.
76
77 .. _DTrace: http://www.apple.com/macosx/technology/unix.html
78
79 IPython is known to work with all the above installation options. As such, we do not endorse one choice over the others. Here we will simply list the known installation issues under OSX, along with their solutions.
77 80
78 81 This page: http://geosci.uchicago.edu/~tobis/pylab.html contains
79 82 information on this topic, with additional details on how to make
80 83 IPython and matplotlib play nicely under OSX.
81 84
82 To run IPython and readline on OSX "Leopard" system python, see the
83 wiki page at http://ipython.scipy.org/moin/InstallationOSXLeopard
84
85 85
86 GUI problems
87 ------------
86 GUI problems (older versions of OS X)
87 -------------------------------------
88 88
89 The following instructions apply to an install of IPython under OSX from
90 unpacking the .tar.gz distribution and installing it for the default
91 Python interpreter shipped by Apple. If you are using a fink install,
92 fink will take care of these details for you, by installing IPython
93 against fink's Python.
89 The following instructions apply to an install of IPython under OSX before OS X 10.5 (users of OS X 10.5 see [#]_ ) by unpacking the .tar.gz distribution and installing it for the default Python interpreter shipped by Apple. If you are using a fink or DarwinPorts install, they will take care of these details for you, by installing IPython against their Python.
94 90
95 91 IPython offers various forms of support for interacting with graphical
96 92 applications from the command line, from simple Tk apps (which are in
@@ -103,7 +99,7 b' So when installing under OSX, it is best to use the following command::'
103 99
104 100 $ sudo pythonw setup.py install --install-scripts=/usr/local/bin
105 101
106 or
102 or::
107 103
108 104 $ sudo pythonw setup.py install --install-scripts=/usr/bin
109 105
@@ -124,12 +120,14 b' scripts in an internal directory not available by default at the command'
124 120 line (if you use /usr/local/bin, you need to make sure this is in your
125 121 $PATH, which may not be true by default).
126 122
123 .. [#] Users of OS X 10.5 who choose to use the system-installed python should install IPython using ``sudo python setupegg.py install`` from the IPython source directory or from `PyPI`_ using ``sudo easy_install ipython``.
124
125 .. _PyPI: http://pypi.python.org/pypi
127 126
128 127 Readline problems
129 128 -----------------
130 129
131 By default, the Python version shipped by Apple does not include the
132 readline library, so central to IPython's behavior. If you install
130 By default, the Python version shipped by Apple before OS X 10.5 does not include the readline library, so central to IPython's behavior. If you install
133 131 IPython against Apple's Python, you will not have arrow keys, tab
134 132 completion, etc. For Mac OSX 10.3 (Panther), you can find a prebuilt
135 133 readline library here:
@@ -142,9 +140,25 b' need to either:'
142 140 /Library/Python/2.3/site-packages, or
143 141 2. install http://pythonmac.org/packages/TigerPython23Compat.pkg.zip
144 142
145 Users installing against Fink's Python or a properly hand-built one
146 should not have this problem.
147 143
144 Beginning with OS X 10.5, Apple's python installation uses libedit, a BSD-licensed not-quite-compatible readline replacement. As of IPython 0.9, many of the issues related to the differences between readline and libedit have been resolved. If you find that you are experiencing readline-related issues (e.g. problems with tab-completion, history movement, or line editing), you can install Ludwig Schwartz's readline package which effectively replaces libedit with readline for packages installed via setuptools. If you installed IPython from the source directory using::
145
146 sudo python setupegg.py
147
148 or from PyPI with::
149
150 sudo easy_install ipython
151
152 then you can install the readline egg via [#]_::
153
154 sudo easy_install readline
155
156 If needed, the readline egg can be build and installed from source (see the
157 wiki page at http://ipython.scipy.org/moin/InstallationOSXLeopard).
158
159 Users installing against Fink or DarwinPorts's Python or a properly hand-built python installation should not have this problem.
160
161 .. [#] If you have installed SVN 1.5, you will also to install a patch to setuptools before installing the readline egg. Use ``sudo easy_install http://www.jaraco.com/ASP/eggs/setuptools-0.6c8_svn15fix.egg``.
148 162
149 163 DarwinPorts
150 164 -----------
General Comments 0
You need to be logged in to leave comments. Login now