Skip to content

Commit e33f6f1

Browse files
committed
Pack the note about package managers in a note env
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 19cd412 commit e33f6f1

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

doc/sphinx/source/contributing.rst

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,31 @@ Next install the install your development copy of bpython and its dependencies:
5252
<modify a file in some way>
5353
$ bpython # this runs your modified copy of bpython!
5454
55-
Many requirements are also available from your distribution's package manager.
56-
Installation of some dependencies requires Python headers and a C compiler.
57-
These are also available from your package manager.
55+
.. note::
5856

59-
As a first dev task, I recommend getting `bpython` to print your name every time you hit a specific key.
57+
Many requirements are also available from your distribution's package
58+
manager. On Debian/Ubuntu based systems, the following packages can be used:
59+
60+
.. code-block:: bash
61+
62+
$ sudp apt-get install python-greenlet python-pygments python-requests
63+
$ sudo apt-get install python-watchdog python-urwid
64+
$ sudo apt-get install python-sphinx python-mock python-nose
65+
66+
Rememeber to replace ``python`` with ``python3`` in every package name if
67+
you intend to develop with Python 3. You also need to run `virtualenv` with
68+
`--system-site-packages` packages, if you want to use the packages provided
69+
by your distribution.
70+
71+
Installation of some dependencies with ``pip`` requires Python headers and a
72+
C compiler. These are also available from your package manager.
73+
74+
.. code-block:: bash
75+
76+
$ sudo apt-get install gcc python-dev
77+
78+
As a first dev task, I recommend getting `bpython` to print your name every
79+
time you hit a specific key.
6080

6181
To run tests from the bpython directory:
6282

0 commit comments

Comments
 (0)