From 41e91137377cb254aeb66c27148ebce46aa92c07 2013-08-08 21:26:35 From: MinRK Date: 2013-08-08 21:26:35 Subject: [PATCH] install doc pass a bit of cleanup - move quick start above overview - move Python version check to the top - link back to install page on the website - remove mentions of deprecated distribute --- diff --git a/docs/source/install/install.rst b/docs/source/install/install.rst index ee9b397..bcfc6cb 100644 --- a/docs/source/install/install.rst +++ b/docs/source/install/install.rst @@ -1,57 +1,30 @@ -Overview -======== - -This document describes the steps required to install IPython. IPython is -organized into a number of subpackages, each of which has its own dependencies. -All of the subpackages come with IPython, so you don't need to download and -install them separately. However, to use a given subpackage, you will need to -install all of its dependencies. - -Please let us know if you have problems installing IPython or any of its -dependencies. Officially, IPython requires Python 2.6, 2.7, 3.1, or 3.2. - -.. warning:: - - Since version 0.11, IPython has a hard syntax dependency on 2.6, and will no - longer work on Python <= 2.5. You can find older versions of IPython which - supported Python <= 2.5 `here `_ - -Some of the installation approaches use the :mod:`distribute` package and its -:command:`easy_install` command line program. In many scenarios, this provides -the most simple method of installing IPython and its dependencies. More -information about :mod:`distribute` can be found on `its PyPI page -`__. +IPython requires Python 2.6, 2.7, or ≥ 3.2. .. note:: - On Windows, IPython has a hard dependency on :mod:`distribute`. We hope to - change this in the future, but for now on Windows, you *must* install - :mod:`distribute`. - -More general information about installing Python packages can be found in -`Python's documentation `_. - + If you need to use Python 2.5, you can find an old version (≤0.10) of IPython + `here `__. Quickstart ========== -If you have :mod:`distribute` installed and you are on OS X or Linux (not -Windows), the following will download and install IPython *and* the main -optional dependencies: +If you have :mod:`setuptools`, +the quickest way to get up and running with IPython is: .. code-block:: bash $ easy_install ipython[all] -This will get: +This will download and install IPython and its main optional dependencies: - jinja2, needed for the notebook - sphinx, needed for nbconvert - pyzmq, needed for IPython's parallel computing features, qt console and - notebook. -- pygments, used by nbconvert and the Qt console for syntax highlighting. + notebook +- pygments, used by nbconvert and the Qt console for syntax highlighting - tornado, needed by the web-based notebook -- nose, used by the test suite. +- nose, used by the test suite +- readline (on OS X) or pyreadline (on Windows), needed for the terminal To run IPython's test suite, use the :command:`iptest` command: @@ -59,7 +32,48 @@ To run IPython's test suite, use the :command:`iptest` command: $ iptest +.. note:: + + .. code-block:: bash + + $ pip install ipython[all] + will also work in many cases, but it will ignore the binary eggs + of packages such as pyzmq and readline, + which may be required for some users on Windows or OS X. + + +Overview +======== + +This document describes in detail the steps required to install IPython, +and its various optional dependencies. +For a few quick ways to get started with package managers or full Python distributions, +see `the install page `_ of the IPython website. + +IPython is organized into a number of subpackages, each of which has its own dependencies. +All of the subpackages come with IPython, so you don't need to download and +install them separately. However, to use a given subpackage, you will need to +install all of its dependencies. + +Please let us know if you have problems installing IPython or any of its dependencies. + +IPython and most dependencies can be installed via :command:`easy_install`, +provided by the :mod:`setuptools` package, or :command:`pip`. +In many scenarios, this is the most simplest method of installing Python packages. +More information about :mod:`setuptools` can be found on +`its PyPI page `__. + +.. note:: + + On Windows, IPython *requires* :mod:`setuptools`. We hope to + change this in the future, but for now on Windows, you *must* install + :mod:`setuptools` to use IPython. + +More general information about installing Python packages can be found in +`Python's documentation `_. + + Installing IPython itself ========================= @@ -76,15 +90,22 @@ installed. See below for details of how to make sure you have a working Installation using easy_install or pip -------------------------------------- -If you have :mod:`setuptools`, the easiest way of getting IPython is -to simply use :command:`easy_install`: +If you have :mod:`setuptools` or :mod:`pip`, the easiest way of getting IPython is +to simply use :command:`easy_install` or :command:`pip`: .. code-block:: bash - $ easy_install ipython + $ pip install ipython That's it. +.. note:: + + Many prefer :command:`pip` to :command:`easy_install`, but it ignores eggs (binary Python packages). + This mainly affects pyzmq and readline, which are compiled packages and provide + binary eggs. If you use :command:`pip` to install these packages, + it will always compile from source, which may not succeed. + Installation from source ------------------------ @@ -140,7 +161,7 @@ need to have Git installed on your system. Then just do: .. code-block:: bash - $ git clone https://github.com/ipython/ipython.git + $ git clone --recursive https://github.com/ipython/ipython.git $ cd ipython $ python setup.py install @@ -160,7 +181,7 @@ just do: $ git pull - + Basic optional dependencies =========================== @@ -181,7 +202,7 @@ As indicated above, on Windows, PyReadline is a *mandatory* dependency. PyReadline is a separate, Windows only implementation of readline that uses native Windows calls through :mod:`ctypes`. The easiest way of installing PyReadline is you use the binary installer available `here -`_. +`__. On OSX, if you are using the built-in Python shipped by Apple, you will be missing a full readline implementation as Apple ships instead a library called @@ -218,17 +239,17 @@ nose To run the IPython test suite you will need the :mod:`nose` package. Nose provides a great way of sniffing out and running all of the IPython tests. The -simplest way of getting nose, is to use :command:`easy_install`: +simplest way of getting nose is to use :command:`easy_install` or :command:`pip`: .. code-block:: bash - $ easy_install nose + $ pip install nose Another way of getting this is to do: .. code-block:: bash - $ easy_install ipython[test] + $ pip install ipython[test] For more installation options, see the `nose website `_. @@ -250,16 +271,18 @@ that instead. On Unix platforms (including OS X), just do: .. code-block:: bash - $ easy_install pexpect + $ pip install pexpect + +.. note:: + + On Python 3, you should actually install :mod:`pexpect-u`, + a unicode-safe fork of pexpect. Windows users are out of luck as pexpect does not run there. Dependencies for IPython.parallel (parallel computing) ====================================================== -:mod:`IPython.kernel` has been replaced by :mod:`IPython.parallel`, -which uses ZeroMQ for all communication. - IPython.parallel provides a nice architecture for parallel computing, with a focus on fluid interactive workflows. These features require just one package: PyZMQ. See the next section for PyZMQ details.