| ... | ... |
@@ -1666,7 +1666,7 @@ function setup_package_with_req_sync {
|
| 1666 | 1666 |
|
| 1667 | 1667 |
if [[ $update_requirements != "changed" ]]; then |
| 1668 | 1668 |
(cd $REQUIREMENTS_DIR; \ |
| 1669 |
- python update.py $project_dir) |
|
| 1669 |
+ ./.venv/bin/python update.py $project_dir) |
|
| 1670 | 1670 |
fi |
| 1671 | 1671 |
|
| 1672 | 1672 |
setup_package $project_dir $flags |
| ... | ... |
@@ -27,8 +27,17 @@ REQUIREMENTS_DIR=$DEST/requirements |
| 27 | 27 |
|
| 28 | 28 |
# install_infra() - Collect source and prepare |
| 29 | 29 |
function install_infra {
|
| 30 |
+ local PIP_VIRTUAL_ENV="$REQUIREMENTS_DIR/.venv" |
|
| 30 | 31 |
# bring down global requirements |
| 31 | 32 |
git_clone $REQUIREMENTS_REPO $REQUIREMENTS_DIR $REQUIREMENTS_BRANCH |
| 33 |
+ [ ! -d $PIP_VIRTUAL_ENV ] && virtualenv $PIP_VIRTUAL_ENV |
|
| 34 |
+ # We don't care about testing git pbr in the requirements venv. |
|
| 35 |
+ PIP_VIRTUAL_ENV=$PIP_VIRTUAL_ENV pip_install -U pbr |
|
| 36 |
+ PIP_VIRTUAL_ENV=$PIP_VIRTUAL_ENV pip_install $REQUIREMENTS_DIR |
|
| 37 |
+ |
|
| 38 |
+ # Unset the PIP_VIRTUAL_ENV so that PBR does not end up trapped |
|
| 39 |
+ # down the VENV well |
|
| 40 |
+ unset PIP_VIRTUAL_ENV |
|
| 32 | 41 |
|
| 33 | 42 |
# Install pbr |
| 34 | 43 |
if use_library_from_git "pbr"; then |