From d22da03c433ff87edd385eb3828b19742d16bfe8 Mon Sep 17 00:00:00 2001 From: xxyzz Date: Thu, 11 May 2023 19:16:39 +0800 Subject: [PATCH] Replace `build_requires` with `setup_requires` keyword (GH-238) setuptools doesn't have a `build_requires` keyword. By using the `setup_requires` keyword, `pip install --use-pep517` will be able to install Cython before building the package. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 73662230..c947e6b6 100644 --- a/setup.py +++ b/setup.py @@ -491,7 +491,7 @@ def write_file(filename, content): ], packages=['lupa'], - build_requires=['Cython>=0.29.28'], + setup_requires=['Cython>=0.29.28'], ext_modules=ext_modules, libraries=ext_libraries, **extra_setup_args