Commit 6001a7da authored by Philippe Gauron's avatar Philippe Gauron
Browse files

install paquets debian & python si TANGO=1

parent 15cfa70e
......@@ -209,6 +209,67 @@ then
warning "yat & yat4tango installation failed!"
fi
### Environment settings
## python : python -V >= 2.7 and < 3
if [[ ! $(python -V 2>&1) == "Python 2.7"* ]]
then
warning "Python is not installed in version 2.7"
ERREUR=2
else
if [ "${DEBUG}" -eq 1 ]
then
info "Python is not in version 2.7"
fi
fi
## Check package installation of packages needed for taurus
## fandango==13.9.0 taurus==4.4.0 PyYAML==3.13 QtPy==1.2.1 python-qt4 python-qwt5-qt4 python-qtpy qt4-designer pyqt4-dev-tools
for ((package=0;package<PIP_PACKAGES_NUMBER; package++))
do
PIP_PACKAGE_NOT_INSTALLED=1
PIP_COMMAND=$(pip show "${PIP_PACKAGES[$package]}") && PIP_PACKAGE_NOT_INSTALLED=0
if [ "${PIP_PACKAGE_NOT_INSTALLED}" -ne 0 ]
then
warning "pip package ${PIP_PACKAGES[$package]} is not installed"
else
COMMAND_VERSION_INCORRECT=1
echo "${PIP_COMMAND}" | grep "${PIP_PACKAGES_VERSION[$package]}" > /dev/null && COMMAND_VERSION_INCORRECT=0
if [ "${COMMAND_VERSION_INCORRECT}" -ne 0 ]
then
warning "pip package ${PIP_PACKAGES[$package]} is not installed with version ${PIP_PACKAGES_VERSION[$package]}"
else
if [ "${DEBUG}" -eq 1 ]
then
info "pip package ${PIP_PACKAGES[$package]} is installed with version ${PIP_PACKAGES_VERSION[$package]}"
fi
fi
fi
done
## Checking debian packages installation
for package in ${DEBIAN_PACKAGES}
do
DEBIAN_PACKAGE_NOT_INSTALLED=1
dpkg -l | grep ^ii | grep "${package} " > /dev/null && DEBIAN_PACKAGE_NOT_INSTALLED=0
if [ "$?" -ne 0 ]
then
warning "debian package ${package} is not installed"
else
if [ "${DEBUG}" -eq 1 ]
then
info "debian package ${package} is installed"
fi
fi
done
### Java version
#### check if Java is not openjdk
if [[ $(java -version 2>&1) != *"OpenJDK"* ]]
......@@ -345,60 +406,7 @@ fi
### Environment settings
## python : python -V >= 2.7 and < 3
if [[ ! $(python -V 2>&1) == "Python 2.7"* ]]
then
warning "Python is not installed in version 2.7"
ERREUR=2
else
if [ "${DEBUG}" -eq 1 ]
then
info "Python is not in version 2.7"
fi
fi
## Check package installation of packages needed for taurus
## fandango==13.9.0 taurus==4.4.0 PyYAML==3.13 QtPy==1.2.1 python-qt4 python-qwt5-qt4 python-qtpy qt4-designer pyqt4-dev-tools
for ((package=0;package<PIP_PACKAGES_NUMBER; package++))
do
PIP_PACKAGE_NOT_INSTALLED=1
PIP_COMMAND=$(pip show "${PIP_PACKAGES[$package]}") && PIP_PACKAGE_NOT_INSTALLED=0
if [ "${PIP_PACKAGE_NOT_INSTALLED}" -ne 0 ]
then
warning "pip package ${PIP_PACKAGES[$package]} is not installed"
else
COMMAND_VERSION_INCORRECT=1
echo "${PIP_COMMAND}" | grep "${PIP_PACKAGES_VERSION[$package]}" > /dev/null && COMMAND_VERSION_INCORRECT=0
if [ "${COMMAND_VERSION_INCORRECT}" -ne 0 ]
then
warning "pip package ${PIP_PACKAGES[$package]} is not installed with version ${PIP_PACKAGES_VERSION[$package]}"
else
if [ "${DEBUG}" -eq 1 ]
then
info "pip package ${PIP_PACKAGES[$package]} is installed with version ${PIP_PACKAGES_VERSION[$package]}"
fi
fi
fi
done
## Checking debian packages installation
for package in ${DEBIAN_PACKAGES}
do
DEBIAN_PACKAGE_NOT_INSTALLED=1
dpkg -l | grep ^ii | grep "${package} " > /dev/null && DEBIAN_PACKAGE_NOT_INSTALLED=0
if [ "$?" -ne 0 ]
then
warning "debian package ${package} is not installed"
else
if [ "${DEBUG}" -eq 1 ]
then
info "debian package ${package} is installed"
fi
fi
done
## matlab : check that matlab is 2018b version
## toolbox : Hayg will define which version has to be installed
......
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