Skip to content

Commit 64a07f5

Browse files
committed
WIP
1 parent d3a50ee commit 64a07f5

File tree

3 files changed

+36
-48
lines changed

3 files changed

+36
-48
lines changed

azure-pipelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- template: ci/azure/posix.yml
2727
parameters:
2828
name: macOS
29-
vmImage: macOS-11
29+
vmImage: macOS-10.15
3030

3131
- template: ci/azure/windows.yml
3232
parameters:

ci/azure/windows.yml

+4-13
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,17 @@ jobs:
2929
- bash: conda install -yv -c conda-forge -n base 'mamba<0.21'
3030
displayName: 'Install mamba'
3131

32-
# See https://github.com/mamba-org/mamba/issues/633
33-
# See https://github.com/mamba-org/mamba/issues/1370
34-
# fail
35-
#echo mamba.exe
36-
#C:\Miniconda\Scripts\mamba.exe info
37-
# mamba info
38-
## ok
39-
# C:\Miniconda\condabin\mamba.bat info
40-
# C:\Miniconda\Library\bin\mamba.bat info
41-
- script: |
42-
where python
43-
python --version
32+
- bash: |
33+
# See https://github.com/mamba-org/mamba/issues/1370
34+
# See https://github.com/mamba-org/mamba/issues/633
4435
C:\Miniconda\condabin\mamba.bat create -n pandas-dev
4536
C:\Miniconda\condabin\mamba.bat env update -n pandas-dev --file ci\\deps\\actions-$(CONDA_PY).yaml
4637
C:\Miniconda\condabin\mamba.bat list -n pandas-dev
4738
displayName: 'Create anaconda environment'
4839
- bash: |
4940
source activate pandas-dev
5041
conda list
51-
python setup.py build_ext -q -j 4
42+
python setup.py build_ext -q -j 2
5243
python -m pip install --no-build-isolation -e .
5344
displayName: 'Build'
5445
- bash: |

ci/setup_env.sh

+31-34
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,34 @@ if [[ "$(uname)" == "Linux" && -n "$LC_ALL" ]]; then
1313
fi
1414

1515

16-
echo "Install Miniconda"
17-
DEFAULT_CONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest"
18-
if [[ "$(uname -m)" == 'aarch64' ]]; then
19-
CONDA_URL="https://github.com/conda-forge/miniforge/releases/download/4.10.1-4/Miniforge3-4.10.1-4-Linux-aarch64.sh"
20-
elif [[ "$(uname)" == 'Linux' ]]; then
21-
if [[ "$BITS32" == "yes" ]]; then
22-
CONDA_URL="$DEFAULT_CONDA_URL-Linux-x86.sh"
16+
MINICONDA_DIR=/usr/local/miniconda
17+
if [ -e $MINICONDA_DIR ] && [ "$BITS32" != yes ]; then
18+
echo "Found Miniconda installation at $MINICONDA_DIR"
19+
else
20+
echo "Install Miniconda"
21+
DEFAULT_CONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest"
22+
if [[ "$(uname -m)" == 'aarch64' ]]; then
23+
CONDA_URL="https://github.com/conda-forge/miniforge/releases/download/4.10.1-4/Miniforge3-4.10.1-4-Linux-aarch64.sh"
24+
elif [[ "$(uname)" == 'Linux' ]]; then
25+
if [[ "$BITS32" == "yes" ]]; then
26+
CONDA_URL="$DEFAULT_CONDA_URL-Linux-x86.sh"
27+
else
28+
CONDA_URL="$DEFAULT_CONDA_URL-Linux-x86_64.sh"
29+
fi
30+
elif [[ "$(uname)" == 'Darwin' ]]; then
31+
CONDA_URL="$DEFAULT_CONDA_URL-MacOSX-x86_64.sh"
2332
else
24-
CONDA_URL="$DEFAULT_CONDA_URL-Linux-x86_64.sh"
33+
echo "OS $(uname) not supported"
34+
exit 1
2535
fi
26-
elif [[ "$(uname)" == 'Darwin' ]]; then
27-
CONDA_URL="$DEFAULT_CONDA_URL-MacOSX-x86_64.sh"
28-
else
29-
echo "OS $(uname) not supported"
30-
exit 1
31-
fi
32-
echo "Downloading $CONDA_URL"
33-
wget -q $CONDA_URL -O miniconda.sh
34-
chmod +x miniconda.sh
36+
echo "Downloading $CONDA_URL"
37+
wget -q $CONDA_URL -O miniconda.sh
38+
chmod +x miniconda.sh
3539

36-
MINICONDA_DIR="$HOME/miniconda3"
37-
rm -rf $MINICONDA_DIR
38-
./miniconda.sh -b -p $MINICONDA_DIR
40+
MINICONDA_DIR="$HOME/miniconda3"
41+
rm -rf $MINICONDA_DIR
42+
./miniconda.sh -b -p $MINICONDA_DIR
43+
fi
3944
export PATH=$MINICONDA_DIR/bin:$PATH
4045

4146
echo
@@ -46,16 +51,12 @@ echo
4651
echo "update conda"
4752
conda config --set ssl_verify false
4853
conda config --set quiet true --set always_yes true --set changeps1 false
49-
conda install pip conda # create conda to create a historical artifact for pip & setuptools
50-
conda update -n base conda
51-
conda install -y -c conda-forge mamba
54+
# TODO: GH#44980 https://github.com/pypa/setuptools/issues/2941
55+
conda install -y -c conda-forge -n base mamba pip 'setuptools<60'
5256

5357
echo "conda info -a"
5458
conda info -a
5559

56-
echo "source deactivate"
57-
source deactivate
58-
5960
echo "conda list (root environment)"
6061
conda list
6162

@@ -65,8 +66,8 @@ conda remove --all -q -y -n pandas-dev
6566
echo
6667
# See https://github.com/mamba-org/mamba/issues/633
6768
mamba create -q -n pandas-dev
68-
echo "mamba env update -q --file=${ENV_FILE}"
69-
time mamba env update -n pandas-dev -q --file="${ENV_FILE}"
69+
echo "mamba env update --file=${ENV_FILE}"
70+
time mamba env update -n pandas-dev --file="${ENV_FILE}"
7071

7172

7273
if [[ "$BITS32" == "yes" ]]; then
@@ -75,7 +76,7 @@ if [[ "$BITS32" == "yes" ]]; then
7576
fi
7677

7778
echo "activate pandas-dev"
78-
source activate pandas-dev
79+
conda activate pandas-dev
7980

8081
# Explicitly set an environment variable indicating that this is pandas' CI environment.
8182
#
@@ -101,11 +102,7 @@ conda list pandas
101102
# Make sure any error below is reported as such
102103

103104
echo "[Build extensions]"
104-
python setup.py build_ext -q -j2
105-
106-
echo "[Updating pip]"
107-
# TODO: GH#44980 https://github.com/pypa/setuptools/issues/2941
108-
python -m pip install --no-deps -U pip wheel "setuptools<60.0.0"
105+
python setup.py build_ext -q -j3
109106

110107
echo "[Install pandas]"
111108
python -m pip install --no-build-isolation -e .

0 commit comments

Comments
 (0)