From 631c38f6a83af12a48ca090e63d0409191ad5dd1 Mon Sep 17 00:00:00 2001 From: Marcel Loose Date: Fri, 16 Feb 2024 16:51:43 +0100 Subject: [PATCH] WIP: Explictly add .aipsrc to package --- MANIFEST.in | 3 ++- setup.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index e820fe3..1f5744c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,6 @@ include *.rst *.md +include casacore/.aipsrc graft casacore/data graft doc graft src -graft tests \ No newline at end of file +graft tests diff --git a/setup.py b/setup.py index a36a610..cd53db0 100755 --- a/setup.py +++ b/setup.py @@ -290,10 +290,10 @@ def run(self): keywords=['pyrap', 'casacore', 'utilities', 'astronomy'], long_description=read('README.rst'), long_description_content_type='text/x-rst', - packages=find_packages() + find_namespace_packages(include=["data.*"]), + packages=find_packages() + find_namespace_packages(include=["casacore.data.*"]), include_package_data=True, package_data={ - "data": [create_symlink(os.getenv("CASACORE_DATA"), "data")] + "casacore.data": [create_symlink(os.getenv("CASACORE_DATA"), "casacore/data")] }, ext_modules=get_extensions(), cmdclass={'build_ext': my_build_ext},