Skip to content

Commit

Permalink
Avoid unsafe use of pip (#3726)
Browse files Browse the repository at this point in the history
* Always use latest version of conda. Ensure pip is always installed.

* pip -> python -m pip
  • Loading branch information
crusaderky authored Jan 29, 2020
1 parent 28577dd commit 1491685
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ci/azure/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,22 @@ steps:
- template: add-conda-to-path.yml

- bash: |
conda update -y conda
conda env create -n xarray-tests --file ${{ parameters.env_file }}
displayName: Install conda dependencies

- bash: |
source activate xarray-tests
pip install -f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com \
python -m pip install \
-f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com \
--no-deps \
--pre \
--upgrade \
matplotlib \
numpy \
pandas \
scipy
pip install \
python -m pip install \
--no-deps \
--upgrade \
git+https://github.com/dask/dask \
Expand All @@ -33,7 +35,7 @@ steps:

- bash: |
source activate xarray-tests
pip install --no-deps -e .
python -m pip install --no-deps -e .
displayName: Install xarray

- bash: |
Expand Down
1 change: 1 addition & 0 deletions ci/requirements/py36-bare-minimum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ channels:
dependencies:
- python=3.6
- coveralls
- pip
- pytest
- pytest-cov
- pytest-env
Expand Down
1 change: 1 addition & 0 deletions ci/requirements/py36-min-nep18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies:
- numpy=1.17
- pandas=0.25
- pint=0.9 # Actually not enough as it doesn't implement __array_function__yet!
- pip
- pytest
- pytest-cov
- pytest-env
Expand Down

0 comments on commit 1491685

Please sign in to comment.