3 # Copyright (C) 2016 <contact@redhat.com>
5 # Author: Loic Dachary <loic@dachary.org>
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU Library Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU Library Public License for more details.
21 virtualenv
--python python2.7
$DIR
24 if pip
--help |
grep -q disable-pip-version-check
; then
25 DISABLE_PIP_VERSION_CHECK
=--disable-pip-version-check
27 DISABLE_PIP_VERSION_CHECK
=
30 # older versions of pip will not install wrap_console scripts
31 # when using wheel packages
32 pip
$DISABLE_PIP_VERSION_CHECK --log $DIR/log.txt
install --upgrade 'pip >= 6.1'
34 if pip
--help |
grep -q disable-pip-version-check
; then
35 DISABLE_PIP_VERSION_CHECK
=--disable-pip-version-check
37 DISABLE_PIP_VERSION_CHECK
=
40 if test -d wheelhouse
; then
41 export NO_INDEX
=--no-index
44 pip
$DISABLE_PIP_VERSION_CHECK --log $DIR/log.txt
install $NO_INDEX --use-wheel --find-links=file://$
(pwd)/wheelhouse
'tox >=1.9'
45 if test -f requirements.txt
; then
46 pip
$DISABLE_PIP_VERSION_CHECK --log $DIR/log.txt
install $NO_INDEX --use-wheel --find-links=file://$
(pwd)/wheelhouse
-r requirements.txt