personal memory agent
0

Configure Feed

Select the types of activity you want to include in your feed.

solstone / build_hooks.py
676 B 24 lines
1# SPDX-License-Identifier: AGPL-3.0-only 2# Copyright (c) 2026 sol pbc 3 4"""Setuptools build hooks for solstone packaging.""" 5 6from __future__ import annotations 7 8import shutil 9from pathlib import Path 10 11from setuptools.command.build_py import build_py 12 13 14class BuildPyWithoutTests(build_py): 15 """Build the base wheel without in-package test directories.""" 16 17 def run(self) -> None: 18 super().run() 19 solstone_root = Path(self.build_lib) / "solstone" 20 if not solstone_root.exists(): 21 return 22 for tests_dir in sorted(solstone_root.rglob("tests"), reverse=True): 23 if tests_dir.is_dir(): 24 shutil.rmtree(tests_dir)