Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # installs sip, pyqt4 and scintall globally for python2.7 and python3.5
- # In the SIP folder *python configure.py --help* shows where pyqt4 will be installed.
- ###### ##################
- sudo apt install chrpath
- cd "$HOME"
- installs="$HOME/scripts"
- mkdir -p scripts
- pushd "$installs"
- mkdir -p "$installs/pyqt4"
- cd "$installs/pyqt4"
- #wget -nc https://www.riverbankcomputing.com/static/Downloads/sip/sip-4.19.3.dev1706101519.tar.gz
- wget -nc https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.3/sip-4.19.3.tar.gz
- wget -nc http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.12/PyQt4_gpl_x11-4.12.tar.gz
- # sourceforge link not working, manually download at osdn.net for package
- wget -nc https://sourceforge.net/projects/pyqt/files/QScintilla2/QScintilla-2.10/QScintilla_gpl-2.10.tar.gz
- tar zxf sip-4.19.3.tar.gz
- tar zxf PyQt4_gpl_x11-4.12.tar.gz
- tar zxf QScintilla_gpl-2.10.tar.gz
- pwd
- #exit 1
- # https://stackoverflow.com/questions/1444367/commenting-out-a-set-of-lines-in-a-shell-script
- ########### SIP INSTALL ###################
- cd "$installs/pyqt4/sip-4.19.3"
- python2 configure.py --confirm-license
- make
- sudo make install
- #make clean
- #python3 configure.py --confirm-license
- #make -j4
- #sudo make install
- ########### pyqt4 ##############
- cd "$installs/pyqt4/PyQt4_gpl_x11-4.12"
- python2 configure.py --confirm-license
- make -j4
- sudo make install
- make clean
- #python3 configure.py --confirm-license
- #make -j4
- #sudo make install
- #exit
- ########### Qscintilla ##########
- cd "$installs/pyqt4/QScintilla_gpl-2.10/Qt4Qt5"
- #qmake DEFINES+=NO_CXX11_REGEX=1
- sudo qmake qscintilla.pro
- sudo make
- sudo make install
- cd "$installs/pyqt4/QScintilla_gpl-2.10/Python"
- ## THIS GIVES ERROR.
- #python2 configure.py
- #make -j4
- #sudo make install
- #python3 configure.py
- #make -j4
- #sudo make install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement