From 75a87eea20fc11a0d01d67a01af2478803ab9fee Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Sat, 14 Nov 2026 14:08:48 -0500 Subject: [PATCH] Exclude build sources from the installation root Keep C++ sources and build metadata in the sdist without installing them at the environment root. Preserve namespace build helpers and adapter fixtures. Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com> --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ab5e2c420..aef5af512 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,7 @@ import sys from shutil import which +from setuptools import find_namespace_packages from skbuild import setup CSP_USE_VCPKG = os.environ.get("CSP_USE_VCPKG", "1").lower() in ("1", "on") @@ -150,7 +151,11 @@ setup( name="csp", version="0.19.1", - packages=["csp"], + # Include build helpers without __init__.py. + packages=find_namespace_packages(include=["csp", "csp.*"]), + # Keep source files in the sdist, not the environment root. + include_package_data=False, + package_data={"csp.tests.adapters": ["*_test_data.*"]}, cmake_install_dir="csp", cmake_args=cmake_args, # cmake_with_sdist=True,