File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 22
33Tips 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
99bpython and multiple python versions
@@ -14,11 +14,22 @@ to us by Simon Liedtke.
1414Do a source checkout of bpython and add the following to your `.profile `
1515equivalent 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
2022resides.
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.
You can’t perform that action at this time.
0 commit comments