pysphereproj/setup.py

18 lines
343 B
Python
Raw Permalink Normal View History

2024-11-01 16:05:09 +01:00
from setuptools import setup, Extension
from Cython.Build import cythonize
2024-11-01 16:44:43 +01:00
import numpy
2024-11-01 16:05:09 +01:00
extensions = [
2024-11-01 16:21:35 +01:00
Extension(
"sphereproj._project",
2024-11-01 16:34:19 +01:00
sources=[
2024-11-01 16:41:00 +01:00
"ext_src/_project.pyx"
2024-11-01 16:21:35 +01:00
],
2024-11-01 16:44:43 +01:00
include_dirs=["ext_src", numpy.get_include()],
2024-11-01 16:21:35 +01:00
language="c++"
)
2024-11-01 16:05:09 +01:00
]
2024-11-01 16:34:19 +01:00
setup(ext_modules=cythonize(extensions))