Skip to content

Commit 0f4942c

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Fix TRACKING_DEPENDS mode"
2 parents 5f6f43e + 981ed29 commit 0f4942c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

stack.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,19 @@ if [[ "$OFFLINE" != "True" ]]; then
711711
PYPI_ALTERNATIVE_URL=$PYPI_ALTERNATIVE_URL $TOP_DIR/tools/install_pip.sh
712712
fi
713713

714+
TRACK_DEPENDS=${TRACK_DEPENDS:-False}
715+
716+
# Install python packages into a virtualenv so that we can track them
717+
if [[ $TRACK_DEPENDS = True ]]; then
718+
echo_summary "Installing Python packages into a virtualenv $DEST/.venv"
719+
pip_install -U virtualenv
720+
721+
rm -rf $DEST/.venv
722+
virtualenv --system-site-packages $DEST/.venv
723+
source $DEST/.venv/bin/activate
724+
$DEST/.venv/bin/pip freeze > $DEST/requires-pre-pip
725+
fi
726+
714727
# Do the ugly hacks for broken packages and distros
715728
source $TOP_DIR/tools/fixup_stuff.sh
716729

@@ -731,19 +744,6 @@ if is_service_enabled neutron; then
731744
install_neutron_agent_packages
732745
fi
733746

734-
TRACK_DEPENDS=${TRACK_DEPENDS:-False}
735-
736-
# Install python packages into a virtualenv so that we can track them
737-
if [[ $TRACK_DEPENDS = True ]]; then
738-
echo_summary "Installing Python packages into a virtualenv $DEST/.venv"
739-
pip_install -U virtualenv
740-
741-
rm -rf $DEST/.venv
742-
virtualenv --system-site-packages $DEST/.venv
743-
source $DEST/.venv/bin/activate
744-
$DEST/.venv/bin/pip freeze > $DEST/requires-pre-pip
745-
fi
746-
747747
# Check Out and Install Source
748748
# ----------------------------
749749

0 commit comments

Comments
 (0)