Commit 57b451cf authored by Philippe Gauron's avatar Philippe Gauron
Browse files

change Python2 en Python3

parent f0560075
#!/bin/bash
# stop at first error
set -e
#set -e
REPO_DIR=$(pwd)/$(dirname "$0")
echo "REPO_DIR=${REPO_DIR}"
## Getting printing functions
# shellcheck source=utils.sh
source "${REPO_DIR}/utils.sh"
## Getting global variables
# shellcheck source=globals.sh
source "${REPO_DIR}/globals.sh"
## Getting installation settings
# shellcheck source=installation_parameters.sh
source "${REPO_DIR}/installation_parameters.sh"
## Sourcing /etc/tangorc
#source /etc/tangorc
info "Uninstalling TANGO according to parameters in 'installation_parameters.sh'"
## Checks Operating System version
if [ "$(/usr/bin/lsb_release -is)" == "Debian" ]
then
DEBIAN_VERSION=$(/usr/bin/lsb_release -cs)
case ${DEBIAN_VERSION} in
stretch*) DEBIAN_VERSION=9;;
buster*) DEBIAN_VERSION=10;;
*) error "Operating System is not a Debian 9!" "${E_INCORRECT_SYSTEM}";;
esac
echo "Debian version : ${DEBIAN_VERSION}"
else
error "Operating System is not a Debian 9!" "${E_INCORRECT_SYSTEM}"
fi
## Remove software in reverse order of installation
......@@ -12,7 +47,6 @@ apt install --assume-yes debconf-utils
### Preparation of uninstallation tools ###
# shellcheck disable=SC2034 # variable used by apt
DEBIAN_FRONTEND=noninteractive
REPO_DIR=$(pwd)/$(dirname "$0")
echo "REPO_DIR=${REPO_DIR}"
......@@ -26,24 +60,30 @@ echo "REPO_DIR=${REPO_DIR}"
# supprimer "${SUDO_USER}" de /etc/cron.allow'
if [ -e /etc/cron.allow ]
then
sed -i -e "/${SUDO_USER}/d" /etc/cron.allow
sed -i -e "/${SUDO_USER}/d" /etc/cron.allow
fi
# supprimer "0 2 * * * ${REPO_DIR}/archive1/delete_unmodified_since.sh > ${ARCHIVING_DIR}/hdbtdb_delete_data_and_diary_files.log" du fichier "/var/spool/cron/crontabs/${USERNAME}"
if [ -e "/var/spool/cron/crontabs/${SUDO_USER}" ]
then
sed -i -e "/hdbtdb/d" "/var/spool/cron/crontabs/${SUDO_USER}"
sed -i -e "/hdbtdb/d" "/var/spool/cron/crontabs/${SUDO_USER}"
fi
service cron restart
rm -rf "${ARCHIVING_DIR}"
# remove symbolic link from /etc/bashrc to /etc/bash.bashrc if exists
if [ -L /etc/bashrc ]
then
rm -f /etc/bash.bashrc
rm -f /etc/bash.bashrc
fi
## supprimer le commentaire bind-address
if [ -f "/etc/mysql/my.cnf" ]
then
sed -i -e "s/^#\(bind-address[ ]*=.*\)$/\1/g" /etc/mysql/my.cnf
fi
# remove tangorc configuration file
rm -f /etc/tangorc
# remove ArchivingRoot files
rm -rf /opt/ArchivingRoot
apt purge --assume-yes unzip
apt purge --assume-yes unzip apache2
service mysql restart
......@@ -53,7 +93,17 @@ service mysql restart
## Removing of CLIENT installation packages
# libraries for LabView GUIs
apt-get remove --assume-yes libx32gcc-6-dev libgl1-mesa-dev:i386 libxinerama1:i386 ntpdate ntp rdesktop
LIBX32GCC_DEV=libx32gcc-6-dev
if [ "${DEBIAN_VERSION}" == "10" ]
then
LIBX32GCC_DEV=libx32gcc-8-dev
fi
ECLIPSE_PKG=""
if [ "${DEBIAN_VERSION}" == "9" ]
then
ECLIPSE_PKG=eclipse-pydev
fi
apt-get remove --assume-yes scilab octave "${ECLIPSE_PKG}" imagej "${LIBX32GCC_DEV}" libgl1-mesa-dev:i386 libxinerama1:i386 ntpdate ntp rdesktop
# Basler Pylon
rm -rf /opt/pylon*
......@@ -61,11 +111,12 @@ rm -rf /opt/pylon*
## Removing of TANGO_DB installation packages
## Removing of TANGO_DB installation packages (before TANGO)
# configure dbconfig-common to delete Database and revoke rights
echo 'tango-db tango-db/dbconfig-remove boolean true' | debconf-set-selections
echo 'tango-db tango-db/purge boolean true' | debconf-set-selections
# mariadb-server
apt purge --assume-yes tango-db
......@@ -76,19 +127,45 @@ apt purge --assume-yes tango-db
## Removing of TANGO installation packages
# removing manual installation of libtango-java
apt purge --assume-yes libtango-java
if ! ( apt purge --assume-yes libtango-java )
then
echo "libtango-java already uninstalled"
fi
# deleting manual installation yat & yat4tango
rm -rf /usr/lib/{yat,yat4tango}
rm /usr/lib/libyat.so /usr/lib/libyat.so.* /usr/lib/libyat4tango.so /usr/lib/libyat4tango.so.*
rm -f /usr/lib/libyat.so /usr/lib/libyat.so.* /usr/lib/libyat4tango.so /usr/lib/libyat4tango.so.*
apt purge --assume-yes subversion pkg-config cmake
# Remove Hg-git
sed -i -e "/# Hg-Git plugin for Mercurial/d" /etc/mercurial/hgrc
sed -i -e "/hgext.bookmarks =/d" /etc/mercurial/hgrc
sed -i -e "/hggit =/d" /etc/mercurial/hgrc
pip uninstall -y hg-git dulwich
if ( pip3 show hg-git )
then
pip3 uninstall -y hg-git
fi
if ( pip3 show dulwich )
then
pip3 uninstall -y dulwich
fi
## GUI packages
pip uninstall -y fandango taurus PyYAML QtPy
apt purge --assume-yes python-qt4 qt4-designer pyqt4-dev-tools python-pytango python-qtpy python-qwt5-qt4 python-guiqwt python-pymca5 python-ply spyder python-lxml
if ( pip3 show fandango )
then
pip3 uninstall -y fandango
fi
if ( pip3 show taurus )
then
pip3 uninstall -y taurus
fi
if ( pip3 show PyYAML )
then
pip3 uninstall -y PyYAML
fi
if ( pip3 show QtPy )
then
pip3 uninstall -y QtPy
fi
apt purge --assume-yes python3-qt4 qt4-designer pyqt4-dev-tools python3-qtpy python-qwt5-qt4 python-guiqwt python3-pymca5 python3-ply python3-spyder python3-lxml
## Development packages
apt purge --assume-yes gcc g++ make xemacs21 man
## TANGO packages
......@@ -115,7 +192,7 @@ rm -rf /opt/java/
# remove symbolic link from /var/www/phpmyadmin to /usr/share/phpmyadmin/ if exists
if [ -L /etc/bashrc ]
then
rm -f /etc/bashrc
rm -f /etc/bashrc
fi
# remove phpmyadmin
echo 'phpmyadmin phpmyadmin/dbconfig-remove boolean true' | debconf-set-selections
......@@ -126,16 +203,12 @@ apt purge --assume-yes phpmyadmin
service mysql stop
echo PURGE | debconf-communicate mariadb-client
echo PURGE | debconf-communicate mariadb-server
apt purge --assume-yes expect mariadb-client mariadb-server
apt purge --assume-yes expect mariadb-client mariadb-server mysql-*
rm -rf /etc/mysql/
rm -f /var/www/phpmyadmin
## Removing common tools for all installations
apt purge --assume-yes host mercurial python-pip
apt purge --assume-yes host mercurial python3-pip
## Removing installation tools ###
apt purge --assume-yes debconf-utils dirmngr
......@@ -143,3 +216,5 @@ apt purge --assume-yes debconf-utils dirmngr
apt-get clean
apt-get autoremove --assume-yes
info "Uninstalling TANGO finished. Please notive this does not assure every step succeeds."
......@@ -325,7 +325,7 @@ apt install -d host
# git mercurial
apt install --assume-yes git mercurial
# pip
apt install --assume-yes python-pip
apt install --assume-yes python3-pip
if [ "${DATABASE}" -eq 1 ]
then
......@@ -368,16 +368,16 @@ then
fi
## TANGO packages
apt install -d --assume-yes tango-common tango-starter tango-test python-pytango libtango-doc libtango-dev liblog4j1.2-java
apt install -d --assume-yes tango-common tango-starter tango-test python3-pytango libtango-doc libtango-dev liblog4j1.2-java
LIBTANGO_JAVA=libtango-java_9.2.5a-1_all.deb
## Development packages
apt install -d --assume-yes python-dev
apt install -d --assume-yes python3-dev
apt install -d --assume-yes gcc g++ make xemacs21 man
## GUI packages
apt install -d --assume-yes python-qtpy python-qwt5-qt4 python-guiqwt python-pymca5 python-ply spyder python-lxml
apt install -d --assume-yes python-qt4 qt4-designer pyqt4-dev-tools
apt install -d --assume-yes python3-qtpy python-qwt5-qt4 python-guiqwt python3-pymca5 python3-ply python3-spyder python3-lxml
apt install -d --assume-yes python3-pyqt4 qt4-designer pyqt4-dev-tools
## GUI pip packages
if [ ! -d "${REPO_DIR}/tmp" ]
......@@ -391,30 +391,30 @@ then
fi
if [ ! -f "${REPO_DIR}/tmp/fandango-13.9.0.tar.gz" ]
then
pip download "${PIP_OPTION[@]}" -d "${REPO_DIR}/tmp" "fandango==13.9.0"
pip3 download "${PIP_OPTION[@]}" -d "${REPO_DIR}/tmp" "fandango==13.9.0"
fi
if [ ! -f "${REPO_DIR}/tmp/taurus-4.4.0-py2-none-any.whl" ]
then
pip download "${PIP_OPTION[@]}" -d "${REPO_DIR}/tmp" "taurus==4.4.0"
pip3 download "${PIP_OPTION[@]}" -d "${REPO_DIR}/tmp" "taurus==4.4.0"
fi
if [ ! -f "${REPO_DIR}/tmp/PyYAML-3.13.tar.gz" ]
then
pip download "${PIP_OPTION[@]}" -d "${REPO_DIR}/tmp" "PyYAML==3.13"
pip3 download "${PIP_OPTION[@]}" -d "${REPO_DIR}/tmp" "PyYAML==3.13"
fi
if [ ! -f "${REPO_DIR}/tmp/QtPy-1.2.1-py2.py3-none-any.whl" ]
then
pip download "${PIP_OPTION[@]}" -d "${REPO_DIR}/tmp" "QtPy==1.2.1"
pip3 download "${PIP_OPTION[@]}" -d "${REPO_DIR}/tmp" "QtPy==1.2.1"
fi
## Hggit configuration
### dulwich
if [ -z "$(find "${REPO_DIR}/tmp/" -maxdepth 1 -type f -name "dulwich-*" -printf 1 -quit)" ]
then
pip download "${PIP_OPTION[@]}" -d "${REPO_DIR}/tmp" "dulwich>=0.19.0"
pip3 download "${PIP_OPTION[@]}" -d "${REPO_DIR}/tmp" "dulwich>=0.19.0"
fi
### Brotli
if [ -z "$(find "${REPO_DIR}/tmp/" -maxdepth 1 -type f -name "Brotli-*" -printf 1 -quit)" ]
then
pip download "${PIP_OPTION[@]}" -d "${REPO_DIR}/tmp" "Brotli>=1.0.7"
pip3 download "${PIP_OPTION[@]}" -d "${REPO_DIR}/tmp" "Brotli>=1.0.7"
fi
### Hggit itself
mkdir -p "${REPO_DIR}/tmp/hgext"
......@@ -471,22 +471,16 @@ then
then
LIBX32GCC_DEV=libx32gcc-8-dev
fi
apt-get install -d --assume-yes "${LIBX32GCC_DEV}" libgl1-mesa-dev:i386 libxinerama1:i386
## scientific softwares for users
apt install -d --assume-yes scilab octave eclipse-pydev imagej
ECLIPSE_PKG=""
if [ "${DEBIAN_VERSION}" == "9" ]
then
ECLIPSE_PKG=eclipse-pydev
fi
apt install -d --assume-yes scilab octave "${ECLIPSE_PKG}" imagej
apt-get install --assume-yes "${LIBX32GCC_DEV}" libgl1-mesa-dev:i386 libxinerama1:i386
## scientific softwares for users
ECLIPSE_PKG=""
if [ "${DEBIAN_VERSION}" == "9" ]
then
ECLIPSE_PKG=eclipse-pydev
fi
apt install -d --assume-yes scilab octave "${ECLIPSE_PKG}" imagej
apt install --assume-yes scilab octave "${ECLIPSE_PKG}" imagej
fi
......@@ -651,7 +645,7 @@ then
info "installation TANGO"
## TANGO packages
apt --assume-yes install tango-common tango-starter tango-test python-pytango libtango-doc libtango-dev liblog4j1.2-java
apt --assume-yes install tango-common tango-starter tango-test python3-pytango libtango-doc libtango-dev liblog4j1.2-java
LIBTANGO_JAVA=libtango-java_9.2.5a-1_all.deb
## configuration into /etc/tangorc
......@@ -661,18 +655,18 @@ then
sh -c 'sed -i -e "s/^TANGO_HOST=.*$/&\nexport TANGO_HOST/g" /etc/tangorc'
## Development packages
apt --assume-yes install python-pip
apt --assume-yes install python3-pip
apt --assume-yes install gcc g++ make xemacs21 man
## GUI packages
apt --assume-yes install python-qtpy python-qwt5-qt4 python-guiqwt python-pymca5 python-ply spyder python-lxml
apt --assume-yes install python-qt4 qt4-designer pyqt4-dev-tools
apt --assume-yes install python3-qtpy python-qwt5-qt4 python-guiqwt python3-pymca5 python3-ply python3-spyder python3-lxml
apt --assume-yes install python3-pyqt4 qt4-designer pyqt4-dev-tools
## GUI pip packages
pip install --no-index --find-links="${REPO_DIR}/tmp" "fandango==13.9.0" "taurus==4.4.0" "PyYAML==3.13" "QtPy==1.2.1"
pip3 install --no-index --find-links="${REPO_DIR}/tmp" "fandango==13.9.0" "taurus==4.4.0" "PyYAML==3.13" "QtPy==1.2.1"
## Hggit configuration
pip install --no-index --find-links="${REPO_DIR}/tmp" "dulwich>=0.19.0" "brotli>=1.0.7"
pip3 install --no-index --find-links="${REPO_DIR}/tmp" "dulwich>=0.19.0" "brotli>=1.0.7"
if [ ! -d "${REPO_DIR}/tmp/hgext" ]
then
mkdir -p "${REPO_DIR}/tmp/hgext"
......@@ -682,7 +676,7 @@ then
hg clone https://foss.heptapod.net/mercurial/hg-git "${REPO_DIR}tmp/hgext/hg-git"
fi
cd "${REPO_DIR}/tmp/hgext/hg-git" || { echo "failure: cd ${REPO_DIR}/tmp/hgext/hg-git" ; exit 1; }
python setup.py install
python3 setup.py install
cd "${REPO_DIR}" || { echo "failure: cd ${REPO_DIR}" ; exit 1; }
sh -c 'echo "[extensions]" >> /etc/mercurial/hgrc'
sh -c 'echo "# Hg-Git plugin for Mercurial" >> /etc/mercurial/hgrc'
......@@ -757,10 +751,9 @@ then
apt-get install --assume-yes ntpdate ntp
## libraries for LabVIEW GUI
apt-get install --assume-yes "${LIBX32GCC_DEV}" libgl1-mesa-dev:i386 libxinerama1:i386
apt-get install -d --assume-yes "${LIBX32GCC_DEV}" libgl1-mesa-dev:i386 libxinerama1:i386
## scientific softwares for users
apt install --assume-yes scilab octave "${ECLIPSE_PKG}" imagej
apt install -d --assume-yes scilab octave "${ECLIPSE_PKG}" imagej
fi
......@@ -877,24 +870,28 @@ then
git clone https://github.com/luciozambon/eGiga2m.git "${REPO_DIR}/eGiga2m"
mv "${REPO_DIR}/eGiga2m" /var/www/html/
# replace in egiga2m_conf.js
# 1. "<first-configuration>" by "thomx"
sed -i -e "s/<first-configuration>/thomx/g" /var/www/html/eGiga2m/egiga2m_conf.js
# 2. "<your_absolute_path>" by "/var/www/html/eGiga2m"
sed -i -e "s|<your_absolute_path>|/var/www/html/eGiga2m|g" /var/www/html/eGiga2m/egiga2m_conf.js
# 1. "<first-configuration>" by "HDB"
sed -i -e "s/<first-configuration>/HDB/g" /var/www/html/eGiga2m/egiga2m_conf.js
# 2. "<second-configuration>" by "TDB"
sed -i -e "s/<second-configuration>/TDB/g" /var/www/html/eGiga2m/egiga2m_conf.js
# 3. "hdbpp_plot_service" by "hdb_plot_service"
sed -i -e "s/hdbpp_plot_service/hdb_plot_service/g" /var/www/html/eGiga2m/egiga2m_conf.js
# 4. "hdbpp_tree_service" by "hdb_tree_service"
sed -i -e "s/hdbpp_tree_service/hdb_tree_service/g" /var/www/html/eGiga2m/egiga2m_conf.js
# 4. "<your_absolute_path>" by "/var/www/html/eGiga2m"
sed -i -e "s|<your_absolute_path>|.|g" /var/www/html/eGiga2m/egiga2m_conf.js
# 5. cas par défaut
sed -i -e "s|./lib/service/hdb_plot_service.php?conf=\"|./lib/service/hdb_plot_service.php?conf=HDB\"|g" /var/www/html/eGiga2m/egiga2m_conf.js
sed -i -e "s|./lib/service/hdb_tree_service.php?conf=\"|./lib/service/hdb_tree_service.php?conf=HDB\"|g" /var/www/html/eGiga2m/egiga2m_conf.js
sed -i -e "s|./lib/service/hdb_export_service.php?conf=\"|./lib/service/hdb_export_service.php?conf=HDB\"|g" /var/www/html/eGiga2m/egiga2m_conf.js
# replace in lib/service/hdb_conf.php
# 1. "config_1" by "thomx"
sed -i -e "s/config_1/thomx/g" /var/www/html/eGiga2m/lib/service/hdb_conf.php
# 2. "host" by "localhost"
sed -i -e "s/host/localhost/g" /var/www/html/eGiga2m/lib/service/hdb_conf.php
# 3. "username" by "hdbbrowser"
sed -i -e "s/username/hdbbrowser/g" /var/www/html/eGiga2m/lib/service/hdb_conf.php
# 4. "password" by "hdbbrowser"
sed -i -e "s/password/hdbbrowser/g" /var/www/html/eGiga2m/lib/service/hdb_conf.php
# 5. "db" by "hdb"
sed -i -e "s/\"db\"/\"hdb\"/g" /var/www/html/eGiga2m/lib/service/hdb_conf.php
# 6. default config
sed -i -e "s|plotService = \"./lib/service/hdbpp_plot_service.php?conf=\";|plotService = \"./lib/service/hdb_plot_service.php?conf=thomx\";|g" /var/www/html/eGiga2m/egiga2m_conf.js
sed -i -e "s|treeService = \"./lib/service/hdbpp_tree_service.php?conf=\";|treeService = \"./lib/service/hdb_tree_service.php?conf=thomx\";|g" /var/www/html/eGiga2m/egiga2m_conf.js
# 6. "config_1" by "HDB"
sed -i -e "s/config_1/HDB/g" /var/www/html/eGiga2m/lib/service/hdb_conf.php
sed -i -e "s|define(\"HOST\", \"host\");\n\t\t\tdefine(\"USERNAME\", \"username\");\n\t\t\tdefine(\"PASSWORD\", \"password\");\n\t\t\tdefine(\"DB\", \"db\");\n\t\t\tdefine(\"DBTYPE\", \"hdb\");\n\t\t\t// define(\"LOG_REQUEST\", \"../../log/config_1.log\");|define(\"HOST\", \"localhost\");\n\t\t\tdefine(\"USERNAME\", \"hdbbrowser\");\n\t\t\tdefine(\"PASSWORD\", \"hdbbrowser\");\n\t\t\tdefine(\"DB\", \"hdb\");\n\t\t\tdefine(\"DBTYPE\", \"hdb\");\n\t\t\tdefine(\"LOG_REQUEST\", \"../../log/hdb.log\");|g" /var/www/html/eGiga2m/lib/service/hdb_conf.php
# 7. "config_2" by "TDB"
sed -i -e "s/config_2/TDB/g" /var/www/html/eGiga2m/lib/service/hdb_conf.php
sed -i -e "s|define(\"HOST\", \"host\");\n\t\t\tdefine(\"USERNAME\", \"username\");\n\t\t\tdefine(\"PASSWORD\", \"password\");\n\t\t\tdefine(\"DB\", \"db\");\n\t\t\tdefine(\"DBTYPE\", \"hdb\");\n\t\t\t// define(\"LOG_REQUEST\", \"../../log/config_2.log\");|define(\"HOST\", \"localhost\");\n\t\t\tdefine(\"USERNAME\", \"tdbbrowser\");\n\t\t\tdefine(\"PASSWORD\", \"tdbbrowser\");\n\t\t\tdefine(\"DB\", \"tdb\");\n\t\t\tdefine(\"DBTYPE\", \"tdb\");\n\t\t\tdefine(\"LOG_REQUEST\", \"../../log/tdb.log\");|g" /var/www/html/eGiga2m/lib/service/hdb_conf.php
# 8. default config
# restarting web server
service apache2 restart
......@@ -909,10 +906,9 @@ fi
APT_LISTCHANGES_FRONTEND=pager
## Cleaning unused packages
apt autoremove --assume-yes
rm -rf "${REPO_DIR}/tmp"
# shellcheck source=/dev/null # source file out of repo
#rm -rf "${REPO_DIR}/tmp"
source /etc/bash.bashrc
# shellcheck source=/dev/null # source file out of repo
# shellcheck source=/dev/null
source ~/.bashrc
......
......@@ -28,7 +28,6 @@ source "${REPO_DIR}/globals.sh"
source "${REPO_DIR}/installation_parameters.sh"
## Sourcing /etc/tangorc
# shellcheck disable=SC1091 # installed by tango packages
source /etc/tangorc
if [[ "${DEBUG}" -eq 1 ]]
......@@ -50,7 +49,6 @@ then
DEBIAN_VERSION=$(/usr/bin/lsb_release -cs)
case ${DEBIAN_VERSION} in
stretch*) DEBIAN_VERSION=9;;
buster*) DEBIAN_VERSION=10;;
*) error "Operating System is not a Debian 9!" "${E_INCORRECT_SYSTEM}";;
esac
echo "Debian version : ${DEBIAN_VERSION}"
......@@ -104,11 +102,15 @@ CORRECT_TANGO_HOST="srv-2.thomx.fr:20000"
typeset -a PAQUETS_PIP PAQUETS_VERSION
## pip packages
PIP_PACKAGES_NUMBER=4
## test
#PIP_PACKAGES_NUMBER=5
PIP_PACKAGES=(
[0]="fandango"
[1]="taurus"
[2]="PyYAML"
[3]="QtPy"
## test
# [3]="test_pip"
)
## pip packages version
PIP_PACKAGES_VERSION=(
......@@ -116,8 +118,12 @@ PIP_PACKAGES_VERSION=(
[1]="4.4.0"
[2]="3.13"
[3]="1.2.1"
## test
# [3]="1.2.2test"
)
DEBIAN_PACKAGES="python-qt4 python-qwt5-qt4 python-qtpy qt4-designer pyqt4-dev-tools"
DEBIAN_PACKAGES="python3-pyqt4 python-qwt5-qt4 python3-qtpy qt4-designer pyqt4-dev-tools"
## test
#DEBIAN_PACKAGES="test python3-pyqt4 python-qwt5-qt4 python3-qtpy qt4-designer pyqt4-dev-tools"
LIBX32GCC_DEV=libx32gcc-6-dev
ECLIPSE_PKG=eclipse-pydev
if [ "${DEBIAN_VERSION}" == "10" ]
......@@ -125,7 +131,7 @@ then
LIBX32GCC_DEV=libx32gcc-8-dev
ECLIPSE_PKG=""
fi
DEBIAN_PACKAGES_CLIENT="ntpdate ${LIBX32GCC_DEV} libgl1-mesa-dev:i386 libxinerama1:i386 scilab octave ${ECLIPSE_PKG} imagej"
......@@ -616,7 +622,7 @@ fi
### Environment settings
## python : python -V >= 2.7 and < 3
if [[ ! $(python -V 2>&1) == "Python 2.7"* ]]
then
......@@ -630,11 +636,11 @@ 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
## fandango==13.9.0 taurus==4.4.0 PyYAML==3.13 QtPy==1.2.1 python3-pyqt4 python-qwt5-qt4 python3-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
PIP_COMMAND=$(pip3 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"
......
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