move numpy search back into setup.py
This commit is contained in:
parent
109f94778e
commit
7144dbb150
|
@ -16,7 +16,6 @@ else()
|
||||||
add_compile_options(-Wall -Wextra -pedantic)
|
add_compile_options(-Wall -Wextra -pedantic)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(NumPy REQUIRED)
|
|
||||||
find_package(PythonExtensions REQUIRED)
|
find_package(PythonExtensions REQUIRED)
|
||||||
find_package(Python COMPONENTS Interpreter Development)
|
find_package(Python COMPONENTS Interpreter Development)
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -1,5 +1,6 @@
|
||||||
from skbuild import setup
|
from skbuild import setup
|
||||||
import rapidfuzz_capi
|
import rapidfuzz_capi
|
||||||
|
import numpy as np
|
||||||
|
|
||||||
with open('README.md', 'rt', encoding="utf8") as f:
|
with open('README.md', 'rt', encoding="utf8") as f:
|
||||||
readme = f.read()
|
readme = f.read()
|
||||||
|
@ -34,5 +35,5 @@ setup(
|
||||||
},
|
},
|
||||||
python_requires=">=3.6",
|
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()}']
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue