fix: python compile and install

This commit is contained in:
Guilhem Lavaux 2024-11-01 17:21:35 +02:00
parent 138ba3e6fa
commit e7471e1a6a
6 changed files with 12 additions and 4 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
build/
dist/
*.egg-info/
ext_src/_project.cpp

View File

@ -2,10 +2,14 @@ from setuptools import setup, Extension
from Cython.Build import cythonize from Cython.Build import cythonize
extensions = [ extensions = [
Extension("sphereproj._project", ["sphereproj/_project.pyx", "sphereproj/project_tool.hpp", "sphereproj/openmp.hpp"]) Extension(
"sphereproj._project",
[
"ext_src/_project.pyx",
],
language="c++"
)
] ]
setup( setup(py_modules=["sphereproj"],ext_modules=cythonize(extensions))
ext_modules = cythonize(extensions)
)