fix: python compile and install
This commit is contained in:
parent
138ba3e6fa
commit
e7471e1a6a
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
build/
|
||||||
|
dist/
|
||||||
|
*.egg-info/
|
||||||
|
ext_src/_project.cpp
|
12
setup.py
12
setup.py
@ -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)
|
|
||||||
)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user