Skip to content

Commit

Permalink
ci: Block setuptools version in windows compilation
Browse files Browse the repository at this point in the history
In setuptools v74, the `distutils.msvc9compiler` module has been
removed. However, `cffi` still relies on it. Therefore, the generation
of the windows package fails.

By adding a `pyproject.toml` file and declaring the build backend, it
is possible to define the setuptools version used by the command
`python3 - build` which generates the windows wheel.

See: python-cffi/cffi#117
See: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
  • Loading branch information
ptitjano committed Sep 4, 2024
1 parent 1b8ec4c commit bff6da3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools == 73.0.1"]
build-backend = "setuptools.build_meta"

0 comments on commit bff6da3

Please sign in to comment.