From b7b4a86be8b93808b74a35347b6e88c64b887a28 Mon Sep 17 00:00:00 2001 From: Jean Felder Date: Wed, 4 Sep 2024 15:53:24 +0200 Subject: [PATCH] ci: Block setuptools version in windows compilation 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: https://github.com/python-cffi/cffi/issues/117 See: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/ --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..34e76d2 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools == 73.0.1"] +build-backend = "setuptools.build_meta"