Skip to content

Commit

Permalink
Use PIP_CONSTRAINT instead of --no-build-isolation
Browse files Browse the repository at this point in the history
Note: `pip install -c constraints.txt` doesn't pass the constraints into the nested `pip install` command used to set up the isolated build env, but setting the supposedly equivalent environment variable `PIP_CONSTRAINT` does work because it's still set when the nested pip command runs.
  • Loading branch information
adrianeboyd authored Feb 5, 2021
1 parent e0bd290 commit a74c947
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,16 @@ jobs:
- bash: |
pip freeze > installed.txt
pip uninstall -y -r installed.txt
SDIST=$(python -c "import os;print(os.listdir('./dist')[-1])" 2>&1)
PIP_CONSTRAINT="build-constraints.txt" pip install dist/$SDIST
displayName: 'Install from sdist'
- script: |
pip install -r requirements.txt
pip install tensorflow
pip install "mxnet; sys_platform != 'win32'"
pip install "torch==1.7.1+cpu" -f https://download.pytorch.org/whl/torch_stable.html
pip install ipykernel pydot graphviz
SDIST=$(python -c "import os;print(os.listdir('./dist')[-1])" 2>&1)
pip install --no-build-isolation dist/$SDIST
displayName: 'Install from sdist'
- script: |
python -m ipykernel install --name thinc-notebook-tests --user
python -m pytest --pyargs thinc --cov=thinc --cov-report=xml
displayName: 'Run tests'
Expand Down

0 comments on commit a74c947

Please sign in to comment.