X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Ftools%2Fsetup-virtualenv.sh;fp=src%2Fceph%2Fsrc%2Ftools%2Fsetup-virtualenv.sh;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=c7680b9558b941d1ec931478defa9128b39a630f;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/tools/setup-virtualenv.sh b/src/ceph/src/tools/setup-virtualenv.sh deleted file mode 100755 index c7680b9..0000000 --- a/src/ceph/src/tools/setup-virtualenv.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2016 -# -# Author: Loic Dachary -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU Library Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Library Public License for more details. -# - -DIR=$1 -rm -fr $DIR -mkdir -p $DIR -virtualenv --python python2.7 $DIR -. $DIR/bin/activate - -if pip --help | grep -q disable-pip-version-check; then - DISABLE_PIP_VERSION_CHECK=--disable-pip-version-check -else - DISABLE_PIP_VERSION_CHECK= -fi - -# older versions of pip will not install wrap_console scripts -# when using wheel packages -pip $DISABLE_PIP_VERSION_CHECK --log $DIR/log.txt install --upgrade 'pip >= 6.1' - -# workaround of https://github.com/pypa/setuptools/issues/1042 -pip $DISABLE_PIP_VERSION_CHECK --log $DIR/log.txt install --upgrade "setuptools < 36" - -if pip --help | grep -q disable-pip-version-check; then - DISABLE_PIP_VERSION_CHECK=--disable-pip-version-check -else - DISABLE_PIP_VERSION_CHECK= -fi - -if test -d wheelhouse ; then - export NO_INDEX=--no-index -fi - -pip $DISABLE_PIP_VERSION_CHECK --log $DIR/log.txt install $NO_INDEX --use-wheel --find-links=file://$(pwd)/wheelhouse 'tox >=1.9' -if test -f requirements.txt ; then - pip $DISABLE_PIP_VERSION_CHECK --log $DIR/log.txt install $NO_INDEX --use-wheel --find-links=file://$(pwd)/wheelhouse -r requirements.txt -fi