@@ -28,31 +28,34 @@ jobs:
28
28
- script : rm /usr/local/miniconda/pkgs/cache/*.json
29
29
displayName : ' Workaround for mamba-org/mamba#488'
30
30
31
+ - task : Cache@2
32
+ inputs :
33
+ key : sccache-0
34
+ restoreKeys : |
35
+ sccache-restore-0
36
+ path : ~/.sccache
37
+ displayName : Restore Sccache
38
+
31
39
- script : |
32
40
set -eux
33
41
sccache_version=v0.2.15
34
42
sccache_archive_name=sccache-$sccache_version-x86_64-apple-darwin
35
43
curl -L https://github.com/mozilla/sccache/releases/download/$sccache_version/$sccache_archive_name.tar.gz \
36
44
| tar xzf - -O $sccache_archive_name/sccache > /usr/local/bin/sccache
37
45
chmod +x /usr/local/bin/sccache
38
- env | grep -i workspace
39
- env | grep -i runner
40
46
SCCACHE_IDLE_TIMEOUT=999999 SCCACHE_DIR=~/.sccache sccache --start-server
41
47
sccache -s
42
48
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
45
53
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}"
51
54
# See https://github.com/mamba-org/mamba/issues/633
52
55
mamba create -q -n pandas-dev
53
56
# TODO: GH#44980 https://github.com/pypa/setuptools/issues/2941
54
57
echo ' - setuptools <60' >> ${ENV_FILE}
55
- if [[ "$(uname)" == Darwin ] ]; then
58
+ if [ "$(uname)" == Darwin ]; then
56
59
# From pyarrow on MacOS
57
60
# ImportError: 2): Library not loaded: @rpath/libssl.1.1.dylib
58
61
# Referenced from: /Users/runner/miniconda3/envs/pandas-dev/lib/libthrift.0.13.0.dylib
@@ -62,13 +65,11 @@ jobs:
62
65
time mamba env update -n pandas-dev --file="${ENV_FILE}"
63
66
set +e
64
67
echo Have qt?
65
- conda list -f qt --json
68
+ mamba list -n pandas-dev -f qt --json
66
69
echo Have pandas?
67
- pip list | grep pandas
70
+ mamba run --no-capture-output -n pandas-dev pip list | grep pandas
68
71
set -e
69
- echo "Build extensions"
70
72
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"
72
73
time mamba run --no-capture-output -n pandas-dev python -m pip install --no-build-isolation -e .
73
74
sccache -s
74
75
displayName: 'Setup environment and build pandas'
0 commit comments