diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..111890d --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include ext_src/* diff --git a/setup.py b/setup.py index c5736d1..ae7f560 100644 --- a/setup.py +++ b/setup.py @@ -4,12 +4,13 @@ from Cython.Build import cythonize extensions = [ Extension( "sphereproj._project", - [ - "ext_src/_project.pyx", + sources=[ + "ext_src/_project.pyx", "ext_src/_project.cpp" ], + include_dirs=["ext_src"], language="c++" ) ] -setup(py_modules=["sphereproj"],ext_modules=cythonize(extensions)) +setup(ext_modules=cythonize(extensions)) diff --git a/src/sphereproj/__init__.py b/src/sphereproj/__init__.py new file mode 100644 index 0000000..38ac804 --- /dev/null +++ b/src/sphereproj/__init__.py @@ -0,0 +1 @@ +from ._project import spherical_projection \ No newline at end of file