@@ -28,31 +28,34 @@ jobs:
2828 - script : rm /usr/local/miniconda/pkgs/cache/*.json
2929 displayName : ' Workaround for mamba-org/mamba#488'
3030
31+ - task : Cache@2
32+ inputs :
33+ key : sccache-0
34+ restoreKeys : |
35+ sccache-restore-0
36+ path : ~/.sccache
37+ displayName : Restore Sccache
38+
3139 - script : |
3240 set -eux
3341 sccache_version=v0.2.15
3442 sccache_archive_name=sccache-$sccache_version-x86_64-apple-darwin
3543 curl -L https://github.com/mozilla/sccache/releases/download/$sccache_version/$sccache_archive_name.tar.gz \
3644 | tar xzf - -O $sccache_archive_name/sccache > /usr/local/bin/sccache
3745 chmod +x /usr/local/bin/sccache
38- env | grep -i workspace
39- env | grep -i runner
4046 SCCACHE_IDLE_TIMEOUT=999999 SCCACHE_DIR=~/.sccache sccache --start-server
4147 sccache -s
4248 sccache -z
43- # conda config --set ssl_verify false
44- # conda config --set quiet true --set always_yes true --set changeps1 false
49+ displayName: Setup Sccache
50+
51+ - script : |
52+ set -eux
4553 conda install -y -c conda-forge -n base 'mamba>=0.22' pip
46- echo bin
47- ls /usr/local/miniconda/bin
48- echo condabin
49- ls /usr/local/miniconda/condabin
50- echo "mamba env update --file=${ENV_FILE}"
5154 # See https://github.com/mamba-org/mamba/issues/633
5255 mamba create -q -n pandas-dev
5356 # TODO: GH#44980 https://github.com/pypa/setuptools/issues/2941
5457 echo ' - setuptools <60' >> ${ENV_FILE}
55- if [[ "$(uname)" == Darwin ] ]; then
58+ if [ "$(uname)" == Darwin ]; then
5659 # From pyarrow on MacOS
5760 # ImportError: 2): Library not loaded: @rpath/libssl.1.1.dylib
5861 # Referenced from: /Users/runner/miniconda3/envs/pandas-dev/lib/libthrift.0.13.0.dylib
@@ -62,13 +65,11 @@ jobs:
6265 time mamba env update -n pandas-dev --file="${ENV_FILE}"
6366 set +e
6467 echo Have qt?
65- conda list -f qt --json
68+ mamba list -n pandas-dev -f qt --json
6669 echo Have pandas?
67- pip list | grep pandas
70+ mamba run --no-capture-output -n pandas-dev pip list | grep pandas
6871 set -e
69- echo "Build extensions"
7072 time DISTUTILS_C_COMPILER_LAUNCHER=sccache mamba run --no-capture-output -n pandas-dev python setup.py build_ext -q -j3
71- echo "Install pandas"
7273 time mamba run --no-capture-output -n pandas-dev python -m pip install --no-build-isolation -e .
7374 sccache -s
7475 displayName: 'Setup environment and build pandas'
0 commit comments