Skip to content

Commit 1b698fb

Browse files
committed
Update tips and tricks
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent b88b690 commit 1b698fb

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

doc/sphinx/source/tips.rst

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Tips and tricks
44
===============
5-
There are various tricks and tips to bpython. We currently list one of
6-
them on this page. If you know any more. Don't hesitate to let us know
5+
There are various tricks and tips to bpython. We currently list one of them on
6+
this page. If you know any more, don't hesitate to let us know
77
(:ref:`community`)!
88

99
bpython and multiple python versions
@@ -14,11 +14,22 @@ to us by Simon Liedtke.
1414
Do a source checkout of bpython and add the following to your `.profile`
1515
equivalent file.
1616

17+
.. code-block:: bash
18+
1719
alias bpython2.6='PYTHONPATH=~/python/bpython python2.6 -m bpython.cli'
1820
1921
Where the `~/python/bpython`-path is the path to where your bpython source code
2022
resides.
2123

22-
You can offcourse add multiple aliasses (make sure you have pygments installed
23-
on all python versions though), so you can run bpython with 2.6, 2.7 and the 3
24-
series.
24+
.. note::
25+
26+
If you want to create the alias for Python 3.X, make sure to run `python3.X
27+
setup.py build` first and point `PYTHONPATH` to the build location (usually
28+
`build/lib`).
29+
30+
You can of course add multiple aliases, so you can run bpython with 2.6, 2.7
31+
and the 3 series.
32+
33+
.. note::
34+
35+
Make sure you have the dependencies installed on all Python versions.

0 commit comments

Comments
 (0)