Skip to content

Commit cb1304f

Browse files
committed
WIP
1 parent e15887e commit cb1304f

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

.github/actions/setup/action.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ runs:
3333
shell: bash
3434
if: ${{ inputs.pyarrow-version }}
3535

36+
- name: Pin setuptools<60 in ${{ inputs.environment-file }} (GH#44980)
37+
run: echo ' - setuptools<60' >> ${{ inputs.environment-file }}
38+
shell: bash
39+
3640
- name: Setup Mambaforge and install ${{ inputs.environment-file }} (Python ${{ inputs.python-version }})
3741
uses: conda-incubator/setup-miniconda@v2
3842
with:
@@ -46,11 +50,6 @@ runs:
4650
use-only-tar-bz2: true
4751
if: ${{ inputs.is-pypy == 'false' }} # No pypy3.8 support
4852

49-
- name: Pin setuptools (GH#44980)
50-
run: mamba install -n ${{ inputs.activate-environment }} 'setuptools<60.0.0'
51-
shell: bash
52-
if: ${{ inputs.is-pypy == 'false' }} # No pypy3.8 support
53-
5453
- name: Setup PyPy
5554
uses: actions/setup-python@v2
5655
with:

ci/azure/posix.yml

+15-14
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)