Skip to content

Commit

Permalink
automatically install setuptools on 3.12 andf later
Browse files Browse the repository at this point in the history
  • Loading branch information
tammoippen committed Nov 7, 2024
1 parent fb1d619 commit 5b0c3cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ jobs:
- name: Install
run: poetry install

- name: Fix cython issues
if: ${{ matrix.cython == 'yes' && (matrix.python-version == '3.12' || matrix.python-version == '3.13') }}
run: poetry run pip install setuptools

- name: Build Cython file
if: ${{ matrix.cython == 'yes' }}
run: make cythonize
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ pytest = "*"
pytest-benchmark = "*"
pytest-cov = "*"
ruff = "*"
# cython needs distutils, but 3.12 removed it (https://github.com/cython/cython/issues/5751)
setuptools = { version = "*" , python = ">=3.12" }

[build-system]
requires = ["poetry>=0.12"]
Expand Down

0 comments on commit 5b0c3cd

Please sign in to comment.