Guest User

pyqt4 install

a guest
Oct 5th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.53 KB | None | 0 0
  1. # installs sip,  pyqt4 and scintall globally for python2.7 and python3.5
  2. # In the SIP folder *python configure.py --help* shows where pyqt4 will be installed.
  3. ######    ##################
  4. cd "$HOME"
  5. installs="$HOME/scripts"
  6. mkdir -p scripts
  7. pushd "$installs"
  8. mkdir  -p "$installs/pyqt4"
  9. cd "$installs/pyqt4"
  10. #wget -nc https://www.riverbankcomputing.com/static/Downloads/sip/sip-4.19.3.dev1706101519.tar.gz
  11. wget -nc https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.3/sip-4.19.3.tar.gz
  12. wget -nc http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.12/PyQt4_gpl_x11-4.12.tar.gz
  13. # sourceforge link not working, manually download at osdn.net for package
  14. wget -nc https://sourceforge.net/projects/pyqt/files/QScintilla2/QScintilla-2.10/QScintilla_gpl-2.10.tar.gz
  15. tar zxf sip-4.19.3.tar.gz
  16. tar zxf PyQt4_gpl_x11-4.12.tar.gz
  17. tar zxf QScintilla_gpl-2.10.tar.gz
  18. pwd
  19. #exit 1
  20. ########### SIP INSTALL ###################
  21. cd "$installs/pyqt4/sip-4.19.3"
  22. python2 configure.py
  23. make
  24. sudo make install
  25. exit
  26. make clean
  27. python3 configure.py
  28. make -j4
  29. sudo make install
  30. ########### pyqt4  ##############
  31. cd "$installs/pyqt4/PyQt4_gpl_x11-4.12"
  32. python2 configure.py
  33. make -j4
  34. sudo make install
  35. make clean
  36. python3 configure.py
  37. make -j4
  38. sudo make install
  39. ###########  Qscintilla ##########
  40. cd "$installs/pyqt4/QScintilla_gpl-2.10"
  41. qmake DEFINES+=NO_CXX11_REGEX=1
  42. make -j4
  43. sudo make install
  44. cd "$installs/pyqt4/QScintilla_gpl-2.10/Python"
  45. python2 configure.py
  46. make -j4
  47. sudo make install
  48. python3 configure.py
  49. make -j4
  50. sudo make install
Add Comment
Please, Sign In to add comment