Change-Id: I32594f30a13c0757cc918c8a5e54ae182e985693
| ... | ... |
@@ -30,6 +30,12 @@ REQUIREMENTS_DIR=$DEST/requirements |
| 30 | 30 |
# install_infra() - Collect source and prepare |
| 31 | 31 |
function install_infra {
|
| 32 | 32 |
local PIP_VIRTUAL_ENV="$REQUIREMENTS_DIR/.venv" |
| 33 |
+ # bring down global requirements |
|
| 34 |
+ git_clone $REQUIREMENTS_REPO $REQUIREMENTS_DIR $REQUIREMENTS_BRANCH |
|
| 35 |
+ [ ! -d $PIP_VIRTUAL_ENV ] && virtualenv $PIP_VIRTUAL_ENV |
|
| 36 |
+ # We don't care about testing git pbr in the requirements venv. |
|
| 37 |
+ PIP_VIRTUAL_ENV=$PIP_VIRTUAL_ENV pip_install -U pbr |
|
| 38 |
+ PIP_VIRTUAL_ENV=$PIP_VIRTUAL_ENV pip_install $REQUIREMENTS_DIR |
|
| 33 | 39 |
|
| 34 | 40 |
# Install pbr |
| 35 | 41 |
if use_library_from_git "pbr"; then |
| ... | ... |
@@ -40,12 +46,6 @@ function install_infra {
|
| 40 | 40 |
# in via system packages. |
| 41 | 41 |
pip_install "-U" "pbr" |
| 42 | 42 |
fi |
| 43 |
- |
|
| 44 |
- # bring down global requirements |
|
| 45 |
- git_clone $REQUIREMENTS_REPO $REQUIREMENTS_DIR $REQUIREMENTS_BRANCH |
|
| 46 |
- [ ! -d $PIP_VIRTUAL_ENV ] && virtualenv $PIP_VIRTUAL_ENV |
|
| 47 |
- PIP_VIRTUAL_ENV=$PIP_VIRTUAL_ENV pip_install -U pbr |
|
| 48 |
- PIP_VIRTUAL_ENV=$PIP_VIRTUAL_ENV pip_install $REQUIREMENTS_DIR |
|
| 49 | 43 |
} |
| 50 | 44 |
|
| 51 | 45 |
# Restore xtrace |