fix: declare numpy as dependency

This commit is contained in:
guilhem.lavaux@iap.fr 2024-11-01 16:44:43 +01:00
parent 7e6419e0f0
commit 5fe8e2b1db
2 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,6 @@ Homepage = "https://git.aquila-consortium.org/guilhem_lavaux/pysphereproj"
Issues = "https://git.aquila-consortium.org/guilhem_lavaux/pysphereproj/issues" Issues = "https://git.aquila-consortium.org/guilhem_lavaux/pysphereproj/issues"
[build-system] [build-system]
requires = ["setuptools >= 61.0", "wheel", "Cython"] requires = ["setuptools >= 61.0", "numpy", "wheel", "Cython"]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"

View File

@ -1,5 +1,6 @@
from setuptools import setup, Extension from setuptools import setup, Extension
from Cython.Build import cythonize from Cython.Build import cythonize
import numpy
extensions = [ extensions = [
Extension( Extension(
@ -7,7 +8,7 @@ extensions = [
sources=[ sources=[
"ext_src/_project.pyx" "ext_src/_project.pyx"
], ],
include_dirs=["ext_src"], include_dirs=["ext_src", numpy.get_include()],
language="c++" language="c++"
) )
] ]