Skip to content

Commit

Permalink
use virtualenv flag to use pinned pip
Browse files Browse the repository at this point in the history
This would be much more complex if we neded to support python2. But we
don't, so hooray.
  • Loading branch information
cognifloyd committed Feb 15, 2021
1 parent 21a702d commit 824d3ab
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .circle/dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,13 @@ sudo apt-get -y install libldap2-dev libsasl2-dev
(GH_TOKEN=${MACHINE_PASSWORD} gh repo view | head -n2) || true

# This should track the pinned version of pip in st2's Makefile
PIP_DEP="pip==20.0.2"
sudo pip install -U "${PIP_DEP}" setuptools virtualenv
# Also, make sure virtualenv is built with same pip version below.
PIP_VERSION="20.0.2"

virtualenv ~/virtualenv
sudo pip install -U "pip==${PIP_VERSION}" setuptools virtualenv
virtualenv --pip "${PIP_VERSION}" ~/virtualenv
source ~/virtualenv/bin/activate

# virtualenv is updating pip. Revert back to our pinned version.
pip install -U "${PIP_DEP}"
pip --version

# Install StackStorm requirements
echo "Installing StackStorm requirements from /tmp/st2/requirements.txt"
~/virtualenv/bin/pip install -r "/tmp/st2/requirements.txt"
Expand Down

0 comments on commit 824d3ab

Please sign in to comment.