From f61839c82ed9f6ff45577b304969aa362216ecb4 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Fri, 1 Nov 2024 17:34:19 +0200 Subject: [PATCH] fix: packaged data still wrong --- MANIFEST.in | 1 + setup.py | 7 ++++--- src/sphereproj/__init__.py | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 MANIFEST.in create mode 100644 src/sphereproj/__init__.py 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