Skip to content

Commit e86cad9

Browse files
authored
CI: Pin setuptools for python dev (#44989)
1 parent d228a78 commit e86cad9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/python-dev.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ jobs:
4545
with:
4646
python-version: '3.10-dev'
4747

48+
# TODO: GH#44980 https://github.com/pypa/setuptools/issues/2941
4849
- name: Install dependencies
4950
shell: bash
5051
run: |
51-
python -m pip install --upgrade pip setuptools wheel
52+
python -m pip install --upgrade pip "setuptools<60.0.0" wheel
5253
pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
5354
pip install git+https://github.com/nedbat/coveragepy.git
5455
pip install cython python-dateutil pytz hypothesis pytest>=6.2.5 pytest-xdist pytest-cov

azure-pipelines.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ jobs:
3636
vmImage: ubuntu-18.04
3737

3838
steps:
39+
# TODO: GH#44980 https://github.com/pypa/setuptools/issues/2941
3940
- script: |
4041
docker pull quay.io/pypa/manylinux2014_i686
4142
docker run -v $(pwd):/pandas quay.io/pypa/manylinux2014_i686 \
4243
/bin/bash -xc "cd pandas && \
4344
/opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev && \
4445
. ~/virtualenvs/pandas-dev/bin/activate && \
45-
python -m pip install --no-deps -U pip wheel setuptools && \
46+
python -m pip install --no-deps -U pip wheel 'setuptools<60.0.0' && \
4647
pip install cython numpy python-dateutil pytz pytest pytest-xdist hypothesis pytest-azurepipelines && \
4748
python setup.py build_ext -q -j2 && \
4849
python -m pip install --no-build-isolation -e . && \

ci/setup_env.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ echo "[Build extensions]"
106106
python setup.py build_ext -q -j2
107107

108108
echo "[Updating pip]"
109-
python -m pip install --no-deps -U pip wheel setuptools
109+
# TODO: GH#44980 https://github.com/pypa/setuptools/issues/2941
110+
python -m pip install --no-deps -U pip wheel "setuptools<60.0.0"
110111

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

0 commit comments

Comments
 (0)