From 16bab2eec437740fa023713d5b5579a4f00b1cc4 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 13 Feb 2024 12:02:48 +0100 Subject: python: Explicitly list .mako files as part of Python package --- host/python/setup.py.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/host/python/setup.py.in b/host/python/setup.py.in index 39e284b4a..16089e374 100755 --- a/host/python/setup.py.in +++ b/host/python/setup.py.in @@ -8,7 +8,7 @@ from setuptools import setup, find_packages -packages = find_packages() +packages = find_packages() + ['uhd.imgbuilder.templates', 'uhd.imgbuilder.templates.modules'] print("Including packages in pyuhd:", packages) @@ -28,7 +28,11 @@ setup(name='uhd', url='https://www.ettus.com/', license='GPLv3', package_dir={'': r'${NATIVE_CURRENT_BINARY_DIR}'}, - package_data={'uhd': ['*.so']}, + package_data={ + 'uhd': ['*.so'], + 'uhd.imgbuilder.templates': ['*.mako'], + 'uhd.imgbuilder.templates.modules': ['*.mako'], + }, zip_safe=False, packages=packages, install_requires=['numpy']) -- cgit v1.2.3-59-g8ed1b