Commit 924f29ec authored by Ondrej Vysocky's avatar Ondrej Vysocky

ENH updated installation script #7

parent 14340ca2
#!/bin/bash
if ! command -v python3 &>/dev/null
then
echo "ERROR: Python 3 is not installed"
exit 1
fi
# script expects Python3 and PyQt5 are available
if python3 -c "import PyQt5" &> /dev/null
then
SOFTWARE_LOCATION=$(pwd)/SOFTWARE
mkdir $SOFTWARE_LOCATION
#echo "<> install sip"
## https://www.riverbankcomputing.com/software/sip/download
cd $SOFTWARE_LOCATION
wget https://netix.dl.sourceforge.net/project/pyqt/sip/sip-4.19.13/sip-4.19.13.tar.gz
tar -zxvf sip-4.19.13.tar.gz
cd sip-4.19.13
python3 configure.py --sip-module PyQt5.sip --no-tools
make
export SIP_HOME=$(pwd)
export PATH+=:$SIP_HOME/sipgen/
cd sipgen
make
echo
#echo "<> install Qt"
############################################################################
if ! command -v qmake &>/dev/null
then
git clone https://code.qt.io/qt/qt5.git
cd qt5
git checkout v5.8.0
git submodule update --init --recursive
mkdir build
./configure -prefix $(pwd)/build -opensource -nomake examples -nomake tests -confirm-license
make
make install
fi
############################################################################
#echo "<> install PyQt5"
## https://www.riverbankcomputing.com/software/pyqt/download5
cd $SOFTWARE_LOCATION
wget https://netix.dl.sourceforge.net/project/pyqt/PyQt5/PyQt-5.11.3/PyQt5_gpl-5.11.3.tar.gz
tar -zxvf PyQt5_gpl-5.11.3.tar.gz
cd PyQt5_gpl-5.11.3
python3 configure.py --sip-incdir=$SIP_HOME/siplib/ --qmake=$SOFTWARE_LOCATION/qt5/qtbase/bin/qmake --confirm-license
make
mkdir PyQt5
for dir in QtBluetooth QtCore QtDBus QtDesigner QtGui QtHelp QtLocation QtMultimedia QtMultimediaWidgets QtNetwork QtNfc QtOpenGL QtPositioning QtPrintSupport QtQml QtQuick QtQuickWidgets QtSensors QtSerialPort QtSql QtSvg QtTest QtWebChannel QtWebSockets QtWidgets QtXml QtXmlPatterns QtX11Extras _QOpenGLFunctions_2_0 _QOpenGLFunctions_2_1 _QOpenGLFunctions_4_1_Core pyrcc pylupdate
do
cp $dir/*.so PyQt5/ 2> /dev/null
done
cp $SIP_HOME/siplib/sip.so PyQt5/
cp $SIP_HOME/sip.pyi PyQt5/
export PYQT5_HOME=$(pwd)
export PYTHONPATH=$PYQT5_HOME
#echo
fi
# RADAR GUI modules
for mod in pip scikit-learn matplotlib packaging seaborn enum34==1.1.6 pwlf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment