FS#31588 - [ipython] use python3 instead of python when running setup.py
Attached to Project:
Community Packages
Opened by Kerrick Staley (KerrickStaley) - Monday, 17 September 2012, 22:16 GMT
Last edited by Kyle Keen (keenerd) - Friday, 21 September 2012, 01:10 GMT
Opened by Kerrick Staley (KerrickStaley) - Monday, 17 September 2012, 22:16 GMT
Last edited by Kyle Keen (keenerd) - Friday, 21 September 2012, 01:10 GMT
|
Details
Per PEP 394 [1], scripts are not supposed to reference
python, but rather python2 or python3 as appropriate. Please
change the line
python setup.py install --prefix=/usr --root="$pkgdir" --optimize=0 in IPython's PKGBUILD to python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0 The build process will then use python3, regardless of what the user has python aliased to. This will also set the shebangs in the various scripts provided by ipython to /usr/bin/python3 instead of /usr/bin/python. |
This task depends upon
[1] http://www.python.org/dev/peps/pep-0394/