Show More
@@ -1,18 +1,28 b'' | |||||
1 | .. _core_developer_guide: |
|
1 | .. _core_developer_guide: | |
2 |
|
2 | |||
3 | ================================== |
|
3 | ================================== | |
4 | Developer's guide to core IPython |
|
4 | Guide for IPtyhon core Developpers | |
5 | ================================== |
|
5 | ================================== | |
6 |
|
6 | |||
7 | This guide documents the development of core IPython. Alternatively, |
|
7 | This guide documents the development of core IPython. Alternatively, | |
8 | developers of third party tools and libraries that use IPython should see the |
|
8 | developers of third party tools and libraries that use IPython should see the | |
9 | :doc:`../development/index`. |
|
9 | :doc:`../development/index`. | |
10 |
|
10 | |||
11 | Developers working on core IPython should also consult the |
|
11 | ||
12 | `developer information <https://github.com/ipython/ipython/wiki/Dev:-Index>`_ |
|
12 | For instruction on how to make a developer install see devinstall_. | |
13 | on the IPython GitHub wiki. |
|
|||
14 |
|
13 | |||
15 | .. toctree:: |
|
14 | .. toctree:: | |
16 | :maxdepth: 1 |
|
15 | :maxdepth: 1 | |
17 |
|
16 | |||
18 | release_process |
|
17 | release_process | |
|
18 | ||||
|
19 | ||||
|
20 | Old Documentation | |||
|
21 | ================= | |||
|
22 | ||||
|
23 | Out of date documentation is still available and have been kept for archival | |||
|
24 | reason. | |||
|
25 | ||||
|
26 | Developers working on core IPython should also consult the | |||
|
27 | `developer information <https://github.com/ipython/ipython/wiki/Dev:-Index>`_ | |||
|
28 | on the IPython GitHub wiki. |
@@ -24,11 +24,13 b' install Jupyter ``pip install jupyter``.' | |||||
24 | Overview |
|
24 | Overview | |
25 | -------- |
|
25 | -------- | |
26 |
|
26 | |||
27 | This document describes in detail the steps required to install IPython. |
|
27 | This document describes in detail the steps required to install IPython. For a | |
28 |
|
|
28 | few quick ways to get started with package managers or full Python | |
29 |
see `the install page <http://ipython.org/install.html>`_ of the |
|
29 | distributions, see `the install page <http://ipython.org/install.html>`_ of the | |
|
30 | IPython website. | |||
30 |
|
31 | |||
31 |
Please let us know if you have problems installing IPython or any of its |
|
32 | Please let us know if you have problems installing IPython or any of its | |
|
33 | dependencies. | |||
32 |
|
34 | |||
33 | IPython and most dependencies should be installed via :command:`pip`. |
|
35 | IPython and most dependencies should be installed via :command:`pip`. | |
34 | In many scenarios, this is the simplest method of installing Python packages. |
|
36 | In many scenarios, this is the simplest method of installing Python packages. | |
@@ -39,13 +41,25 b' More information about :mod:`pip` can be found on' | |||||
39 | More general information about installing Python packages can be found in |
|
41 | More general information about installing Python packages can be found in | |
40 | `Python's documentation <http://docs.python.org>`_. |
|
42 | `Python's documentation <http://docs.python.org>`_. | |
41 |
|
43 | |||
|
44 | .. _dependencies: | |||
|
45 | ||||
|
46 | Dependencies | |||
|
47 | ~~~~~~~~~~~~ | |||
|
48 | ||||
|
49 | IPython relies on a number of other Python packages. Installing using a package | |||
|
50 | manager like pip or conda will ensure the necessary packages are installed. If | |||
|
51 | you install manually, it's up to you to make sure dependencies are installed. | |||
|
52 | They're not listed here since a static list would inevitably fall out of date as | |||
|
53 | dependencies may change from release to release and also vary depending on | |||
|
54 | the platform. | |||
|
55 | ||||
42 |
|
56 | |||
43 | Installing IPython itself |
|
57 | Installing IPython itself | |
44 | ~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
58 | ~~~~~~~~~~~~~~~~~~~~~~~~~ | |
45 |
|
59 | |||
46 | IPython requires several dependencies to work correctly, it is not recommended |
|
60 | IPython requires several dependencies to work correctly, it is not recommended | |
47 |
to install IPython and all its dependencies manually as this can be quite long |
|
61 | to install IPython and all its dependencies manually as this can be quite long | |
48 | You should use the python package manager ``pip``. |
|
62 | and troublesome. You should use the python package manager ``pip``. | |
49 |
|
63 | |||
50 | Installation using pip |
|
64 | Installation using pip | |
51 | ~~~~~~~~~~~~~~~~~~~~~~ |
|
65 | ~~~~~~~~~~~~~~~~~~~~~~ | |
@@ -76,40 +90,42 b' grab the latest stable tarball of IPython `from PyPI' | |||||
76 | $ cd ipython |
|
90 | $ cd ipython | |
77 | $ pip install . |
|
91 | $ pip install . | |
78 |
|
92 | |||
79 |
Do not invoke ``setup.py`` directly as this can have undesirable consequences |
|
93 | Do not invoke ``setup.py`` directly as this can have undesirable consequences | |
80 |
Try to also avoid any usage of ``easy_install`` that can |
|
94 | for further upgrades. Try to also avoid any usage of ``easy_install`` that can | |
|
95 | have similar undesirable consequences. | |||
81 |
|
96 | |||
82 | If you are installing to a location (like ``/usr/local``) that requires higher |
|
97 | If you are installing to a location (like ``/usr/local``) that requires higher | |
83 | permissions, you may need to run the last command with :command:`sudo`. You can |
|
98 | permissions, you may need to run the last command with :command:`sudo`. You can | |
84 |
also install in user specific location by using the ``--user`` flag in |
|
99 | also install in user specific location by using the ``--user`` flag in | |
|
100 | conjunction with pip. | |||
85 |
|
101 | |||
86 |
To run IPython's test suite, use the :command:`iptest` command from outside of |
|
102 | To run IPython's test suite, use the :command:`iptest` command from outside of | |
|
103 | the IPython source tree: | |||
87 |
|
104 | |||
88 | .. code-block:: bash |
|
105 | .. code-block:: bash | |
89 |
|
106 | |||
90 | $ iptest |
|
107 | $ iptest | |
91 |
|
108 | |||
92 |
|
109 | .. _devinstall: | ||
93 | Installing the development version |
|
110 | Installing the development version | |
94 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
111 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
95 |
|
112 | |||
96 | It is also possible to install the development version of IPython from our |
|
113 | It is also possible to install the development version of IPython from our | |
97 | `Git <http://git-scm.com/>`_ source code repository. To do this you will |
|
114 | `Git <http://git-scm.com/>`_ source code repository. To do this you will | |
98 |
need to have Git installed on your system. |
|
115 | need to have Git installed on your system. | |
99 |
|
||||
100 | .. code-block:: bash |
|
|||
101 |
|
116 | |||
102 | $ git clone https://github.com/ipython/ipython.git |
|
|||
103 | $ cd ipython |
|
|||
104 | $ pip install . |
|
|||
105 |
|
117 | |||
106 | Some users want to be able to follow the development branch as it changes. |
|
118 | Then do: | |
107 | With :mod:`pip` installed, you can replace the last step by: |
|
|||
108 |
|
119 | |||
109 | .. code-block:: bash |
|
120 | .. code-block:: bash | |
110 |
|
121 | |||
|
122 | $ git clone https://github.com/ipython/ipython.git | |||
|
123 | $ cd ipython | |||
111 | $ pip install -e . |
|
124 | $ pip install -e . | |
112 |
|
125 | |||
|
126 | The `pip install -e .` allow users and developers to be able to follow the | |||
|
127 | development branch as it changes. | |||
|
128 | ||||
113 | This creates links in the right places and installs the command line script to |
|
129 | This creates links in the right places and installs the command line script to | |
114 | the appropriate location. |
|
130 | the appropriate location. | |
115 |
|
131 | |||
@@ -119,14 +135,3 b' Then, if you want to update your IPython at any time, do:' | |||||
119 |
|
135 | |||
120 | $ git pull |
|
136 | $ git pull | |
121 |
|
137 | |||
122 | .. _dependencies: |
|
|||
123 |
|
||||
124 | Dependencies |
|
|||
125 | ~~~~~~~~~~~~ |
|
|||
126 |
|
||||
127 | IPython relies on a number of other Python packages. Installing using a package |
|
|||
128 | manager like pip or conda will ensure the necessary packages are installed. If |
|
|||
129 | you install manually, it's up to you to make sure dependencies are installed. |
|
|||
130 | They're not listed here since a static list would inevitably fall out of date as |
|
|||
131 | dependencies may change from release to release and also vary depending on |
|
|||
132 | the platform. |
|
General Comments 0
You need to be logged in to leave comments.
Login now