From 04c35bffafb4e618345eb507b77b602bf5a89435 Mon Sep 17 00:00:00 2001 From: Chris Bradley Date: Mon, 21 Oct 2024 15:21:26 +0100 Subject: [PATCH 1/3] Fix setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index eb7090c..86648b3 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ url="https://github.com/ecmwf/gribjump", author="ECMWF", author_email="software.support@ecmwf.int", - packages=find_packages(exclude=("docs", "tests")), + packages=find_packages(where="./pygribjump/src", exclude=("docs", "tests")), include_package_data=True, install_requires=["cffi", "findlibs", "numpy"], zip_safe=False, From cc3551d5b502bde2dddde04a4eac95d2e8720fc1 Mon Sep 17 00:00:00 2001 From: Chris Bradley Date: Mon, 21 Oct 2024 15:38:10 +0100 Subject: [PATCH 2/3] Fix setup.py attempt 2 --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 86648b3..979130c 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,10 @@ url="https://github.com/ecmwf/gribjump", author="ECMWF", author_email="software.support@ecmwf.int", - packages=find_packages(where="./pygribjump/src", exclude=("docs", "tests")), + packages = ["pygribjump"], + package_dir={"": ".", + "pygribjump": "./pygribjump/src/pygribjump" + }, include_package_data=True, install_requires=["cffi", "findlibs", "numpy"], zip_safe=False, From 586d3fb292940da2220a746c001afe258d25cee6 Mon Sep 17 00:00:00 2001 From: Chris Bradley Date: Mon, 21 Oct 2024 15:54:26 +0100 Subject: [PATCH 3/3] Update python manifest --- MANIFEST.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index 5789ce3..8d71298 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1 @@ -include pygribjump/gribjump_c.h +include pygribjump/src/pygribjump/gribjump_c.h