Skip to content

Commit b535731

Browse files
committed
use virtualenv flag to use pinned pip
This would be much more complex if we neded to support python2. But we don't, so hooray.
1 parent 7f5dc3b commit b535731

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.circle/dependencies

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,13 @@ sudo apt-get -y install libldap2-dev libsasl2-dev
3939
(GH_TOKEN=${MACHINE_PASSWORD} gh repo view | head -n2) || true
4040

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

45-
virtualenv ~/virtualenv
45+
sudo pip install -U "pip==${PIP_VERSION}" setuptools virtualenv
46+
virtualenv --pip "${PIP_VERSION}" ~/virtualenv
4647
source ~/virtualenv/bin/activate
4748

48-
# virtualenv is updating pip. Revert back to our pinned version.
49-
pip install -U "${PIP_DEP}"
50-
pip --version
51-
5249
# Install StackStorm requirements
5350
echo "Installing StackStorm requirements from /tmp/st2/requirements.txt"
5451
~/virtualenv/bin/pip install -r "/tmp/st2/requirements.txt"

0 commit comments

Comments
 (0)