Hi All!
I’m experiencing inconsistent behavour when doing pip install over restored venv. Pip install has some version conflict warning (another issue), which passes and gets things installed first time. But when rebuild happens and venv is restored from the cache, pip fails hard with version inconsistencies. The weird part is that if I rebuild with ssh enabled and then execute the same pip install commands in the container, everything is fine.
Any ideas?
A.
test:
docker:
- image: circleci/python:3.6.5
steps:
- checkout
- restore_cache:
keys:
- v3-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "setup.py"}}
- run:
name: Install dependencies
command: |
virtualenv venv --python=python3.6
. venv/bin/activate
pip install -r requirements.txt --extra-index-url https://xxxx --trusted-host xxxx
- save_cache:
paths:
- ./venv
key: v3-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "setup.py"}}
- run:
name: run tests
command: |
. venv/bin/activate
pytest