X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=utils%2Flab-reconfiguration%2Fcreate_venv.sh;h=4e7144c7000552f2b99839f6894ee034d7eb2d4f;hb=4d9646457a7893375744efaefc3fe93521c034d9;hp=e94b22b1bf58fbc06fcacf70164607fd74ef64d0;hpb=f875d7938f019110a53c1726789d3996b3c1ba05;p=releng.git diff --git a/utils/lab-reconfiguration/create_venv.sh b/utils/lab-reconfiguration/create_venv.sh index e94b22b1b..4e7144c70 100755 --- a/utils/lab-reconfiguration/create_venv.sh +++ b/utils/lab-reconfiguration/create_venv.sh @@ -1,5 +1,12 @@ #!/bin/bash -e - +# SPDX-license-identifier: Apache-2.0 +############################################################################## +# Copyright (c) 2016 Cisco and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## # Script checks that venv exists. If it doesn't it will be created # It requires python2.7 and virtualenv packages installed @@ -30,16 +37,6 @@ if [[ ! $(rpm -qa | grep python-2.7) ]]; then sudo yum install -y python-2.7* fi -if [[ ! $(rpm -qa | grep rubygems) ]]; then - echo "Rubygems not found, but required for Fuel Plugin build ... attempting to install" - sudo yum install -y rubygems ruby-devel -fi - -if [[ ! $(gem list | grep fpm) ]]; then - echo "fpm gem not found, but required for Fuel Plugin build ... attempting to install" - sudo gem install fpm -fi - if [ ! -f "$BASEDIR/venv/updated" -o $BASEDIR/requirements.pip -nt $BASEDIR/venv/updated ]; then source $BASEDIR/venv/bin/activate pip install -r $BASEDIR/requirements.pip