Skip to content

Commit 1491685

Browse files
authored
Avoid unsafe use of pip (#3726)
* Always use latest version of conda. Ensure pip is always installed. * pip -> python -m pip
1 parent 28577dd commit 1491685

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

ci/azure/install.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@ steps:
66
- template: add-conda-to-path.yml
77

88
- bash: |
9+
conda update -y conda
910
conda env create -n xarray-tests --file ${{ parameters.env_file }}
1011
displayName: Install conda dependencies
1112

1213
- bash: |
1314
source activate xarray-tests
14-
pip install -f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com \
15+
python -m pip install \
16+
-f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com \
1517
--no-deps \
1618
--pre \
1719
--upgrade \
1820
matplotlib \
1921
numpy \
2022
pandas \
2123
scipy
22-
pip install \
24+
python -m pip install \
2325
--no-deps \
2426
--upgrade \
2527
git+https://github.com/dask/dask \
@@ -33,7 +35,7 @@ steps:
3335

3436
- bash: |
3537
source activate xarray-tests
36-
pip install --no-deps -e .
38+
python -m pip install --no-deps -e .
3739
displayName: Install xarray
3840

3941
- bash: |

ci/requirements/py36-bare-minimum.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ channels:
44
dependencies:
55
- python=3.6
66
- coveralls
7+
- pip
78
- pytest
89
- pytest-cov
910
- pytest-env

ci/requirements/py36-min-nep18.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dependencies:
1111
- numpy=1.17
1212
- pandas=0.25
1313
- pint=0.9 # Actually not enough as it doesn't implement __array_function__yet!
14+
- pip
1415
- pytest
1516
- pytest-cov
1617
- pytest-env

0 commit comments

Comments
 (0)