Don't package docs in the wheel

This commit is contained in:
Robert Taylor 2023-01-09 17:29:43 +00:00 committed by Jean-Paul Chaput
parent 4aa7b680a7
commit d49c76791a
1 changed files with 4 additions and 0 deletions

View File

@ -110,6 +110,10 @@ class ExtensionBuilder(build_ext):
print(f"fixing up {f}") print(f"fixing up {f}")
subprocess.check_call(["patchelf", "--set-rpath", '$ORIGIN/../../lib', 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: def build(setup_kwargs: Dict[str, Any]) -> None:
cmake_modules = [ cmake_modules = [
CMakeExtension("coloquinte", sourcedir="coloquinte"), CMakeExtension("coloquinte", sourcedir="coloquinte"),