move numpy search back into setup.py

This commit is contained in:
Max Bachmann 2022-06-23 11:08:52 +02:00
parent 109f94778e
commit 7144dbb150
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,6 @@ else()
add_compile_options(-Wall -Wextra -pedantic)
endif()
find_package(NumPy REQUIRED)
find_package(PythonExtensions REQUIRED)
find_package(Python COMPONENTS Interpreter Development)
include(FetchContent)

View File

@ -1,5 +1,6 @@
from skbuild import setup
import rapidfuzz_capi
import numpy as np
with open('README.md', 'rt', encoding="utf8") as f:
readme = f.read()
@ -34,5 +35,5 @@ setup(
},
python_requires=">=3.6",
cmake_args=[f'-DRF_CAPI_PATH:STRING={rapidfuzz_capi.get_include()}']
cmake_args=[f'-DRF_CAPI_PATH:STRING={rapidfuzz_capi.get_include()}', f'-DNumPy_INCLUDE_DIR:STRING={np.get_include()}']
)