From 2a3adb893f5be00bfe351e66e860350b90c465ea Mon Sep 17 00:00:00 2001 From: xxyzz Date: Thu, 11 May 2023 17:30:05 +0800 Subject: [PATCH] Replace `build_requires` with `setup_requires` keyword setuptools doesn't have `build_requires` keyword. By using the `setup_requires` keyword, `pip install --use-pep517` will be able to install Cython before building 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