...
- mps_tools: https://github.com/slaclab/mps_tools
- mpsbypass: https://github.com/slaclab/mpsbypass
- pyca: https://github.com/slaclab/pyca
- pydm: https://github.com/slaclab/pydm
- slacepics: https://github.com/slaclab/slacepics
- subprocessca: https://github.com/slaclab/subprocessca
- TimeChart: https://github.com/slaclab/timechart
...
- PIL: http://pythonware.com/products/pil/
- PyQwt: https://github.com/PyQwtSIP: https://www.riverbankcomputing.com/software/sip/download
Code Block | ||||
---|---|---|---|---|
| ||||
$ cat /usr/local/lcls/package/python/python2.7.13/linux-x86_64/src/external-packages/external-requirements.txt PIL PyQwt |
...
Set the QT_HOME environment variable to the location of the Qt5 deployment in the LCLS Controls Environment:
Code Block language bash theme Midnight $ export QT_HOME=/usr/local/lcls/package/Qt/Qt-5.9.1/linux-x86_64
Ensure that the Python 2.7.13 deployment to build and install PyQt5 and SIP against is set as the default Python instance:
Code Block language bash theme Midnight $ export PATH=/usr/local/lcls/package/python/python2.7.13/linux-x86_64/bin:$PATH $ export LD_LIBRARY_PATH=/usr/local/lcls/package/python/python2.7.13/linux-x86_64/lib:/usr/local/lcls/package/python/python2.7.13/linux-x86_64/lib:/usr/local/lcls/package/python/python2.7.13/linux-x86_64/lib/python2.7/lib-dynload:/usr/local/lcls/package/python/python2.7.13/linux-x86_64/build/Python2.7.13/Lib:$LD_LIBRARY_PATH # test $ python --version Python 2.7.13
Extract and build the SIP module, then install it for the Python 2.7.13 instance:
Code Block language bash theme Midnight $ cd /usr/local/lcls/package/python/python2.7.13/linux-x86_64/src/external-packages $ tar -xzvf sip-4.19.6.tar.gz $ cd sip-4.19.6 $ python configure.py $ make $ make install
Set a proper gcc build chain:
Code Block language bash theme Midnight $ export PATH=/usr/local/lcls/package/gcc/gcc-4.9.4/bin:$PATH $ export LD_LIBRARY_PATH=/usr/local/lcls/package/gcc/gcc-4.9.4/linux-x86_64/lib:/usr/local/lcls/package/gcc/gcc-4.9.4/linux-x86_64/lib64:$LD_LIBRARY_PATH
Extract and build the PyQt5 module, then install it for the Python 2.7.13 intstance:
Code Block language bash theme Midnight $ cd /usr/local/lcls/package/python/python2.7.13/linux-x86_64/src/external-packages $ tar -xzvf PyQt5_gpl-5.9.2.tar.gz $ cd PyQt5_gpl-5.9.2 $ python configure.py $ make $ make install
References:
- Python 2.7 (deprecated end-of-life as of January 2020): https://docs.python.org/2/
- PyPI - The Python Package Index: https://pypi.python.org/pypi
- pip - The Python Package Authority's preferred tool for installing packages: https://pip.pypa.io/en/stable/user_guide/#installing-packages
- Jupyter: https://jupyter.org
- PyQt: https://www.riverbankcomputing.com/software/pyqt/intro
- SIP: https://www.riverbankcomputing.com/software/sip/download
- Scikit-learn: http://scikit-learn.org/stable/index.html
...