From: garciadeblas Date: Fri, 10 Nov 2017 09:23:29 +0000 (+0100) Subject: install RO from source: fix to properly install ovim lib X-Git-Tag: v3.0.0rc17^0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c2e241ecb3a820f085d15accb9aa7744301f4277;p=osm%2FRO.git install RO from source: fix to properly install ovim lib Change-Id: I5ee5546a4c3615ad8a8bcd4af342c5bb1349b991 Signed-off-by: garciadeblas --- diff --git a/scripts/install-openmano.sh b/scripts/install-openmano.sh index 09ac88fb..98db3680 100755 --- a/scripts/install-openmano.sh +++ b/scripts/install-openmano.sh @@ -320,10 +320,10 @@ fi # Install debian dependencies before setup.py if [[ -z "$NO_PACKAGES" ]] then - [ "$_DISTRO" == "Ubuntu" ] && install_packages "tox debhelper python-bitarray" + [ "$_DISTRO" == "Ubuntu" ] && install_packages "tox debhelper python-bitarray python-lxml python-six" # TODO check packages for CentOS and RedHat - [ "$_DISTRO" == "CentOS" -o "$_DISTRO" == "Red" ] && install_packages "tox debhelper python-bitarray" - pip install stdeb pyangbind || exit 1 + [ "$_DISTRO" == "CentOS" -o "$_DISTRO" == "Red" ] && install_packages "tox debhelper python-bitarray python-lxml python-six" + pip install --upgrade stdeb pyangbind || exit 1 fi su $SUDO_USER -c "make -C ${BASEFOLDER}/IM all" dpkg -i ${BASEFOLDER}/IM/deb_dist/python-osm-im*.deb ${BASEFOLDER}/IM/pyangbind/deb_dist/*.deb \ @@ -355,11 +355,15 @@ fi # Install debian dependencies before setup.py if [[ -z "$NO_PACKAGES" ]] then - [ "$_DISTRO" == "Ubuntu" ] && install_packages "libmysqlclient-dev" + [ "$_DISTRO" == "Ubuntu" ] && install_packages \ + "libmysqlclient-dev python-cffi python-packaging python-pkgconfig python-pycparser libssl-dev libffi-dev" # TODO check if that is the name in CentOS and RedHat - [ "$_DISTRO" == "CentOS" -o "$_DISTRO" == "Red" ] && install_packages "libmysqlclient-dev" + [ "$_DISTRO" == "CentOS" -o "$_DISTRO" == "Red" ] && install_packages \ + "libmysqlclient-dev python-cffi python-packaging python-pkgconfig python-pycparser libssl-dev libffi-dev" + pip install --upgrade stdeb setuptools-version-command || exit 1 fi -make -C ${BASEFOLDER}/openvim lite +su $SUDO_USER -c "make -C ${BASEFOLDER}/openvim lite" +dpkg -i ${BASEFOLDER}/openvim/.build/python-lib-osm-openvim*.deb rm -rf "${BASEFOLDER}/openvim" OSMLIBOVIM_PATH=`python -c 'import lib_osm_openvim; print lib_osm_openvim.__path__[0]'` || ! echo "ERROR installing python-lib-osm-openvim library!!!" >&2 || exit 1