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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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

Closed by  Kyle Keen (keenerd)
Friday, 21 September 2012, 01:10 GMT
Reason for closing:  None
Comment by Kerrick Staley (KerrickStaley) - Monday, 17 September 2012, 22:21 GMT
I forgot to provide the link:
[1] http://www.python.org/dev/peps/pep-0394/
Comment by Kyle Keen (keenerd) - Friday, 21 September 2012, 01:10 GMT
Noted for next release. And please don't bother to report this for any of my other packages. Or anyone elses'. It will be completely taken care of in due time.

Loading...