From 0860dffb6119c81be7cd46b68d07ac0340a5e9f4 Mon Sep 17 00:00:00 2001 From: Robert Taylor Date: Mon, 9 Jan 2023 17:29:43 +0000 Subject: [PATCH] Don't package docs in the wheel --- builder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builder.py b/builder.py index a98b88b7..53f4b6b7 100644 --- a/builder.py +++ b/builder.py @@ -110,6 +110,10 @@ class ExtensionBuilder(build_ext): print(f"fixing up {f}") subprocess.check_call(["patchelf", "--set-rpath", '$ORIGIN/../../lib', f]) + # Remove docs + if os.path.exists(os.path.join(install_dir, "share", "doc")): + remove_tree(os.path.join(install_dir, "share", "doc")) + def build(setup_kwargs: Dict[str, Any]) -> None: cmake_modules = [ CMakeExtension("coloquinte", sourcedir="coloquinte"),