Make builds incremental by preserving source/build dirs (#45)

This commit is contained in:
Adeeb Shihadeh
2026-03-04 09:17:55 -08:00
committed by GitHub
parent 2e9aed768a
commit 331d94a683
37 changed files with 221 additions and 367 deletions

View File

@@ -15,11 +15,8 @@ class BuildZstd(build_py):
def run(self):
pkg_dir = os.path.dirname(os.path.abspath(__file__))
marker = os.path.join(pkg_dir, "zstd", "install", "lib", "libzstd.a")
if not os.path.exists(marker):
build_script = os.path.join(pkg_dir, "build.sh")
subprocess.check_call(["bash", build_script], cwd=pkg_dir)
build_script = os.path.join(pkg_dir, "build.sh")
subprocess.check_call(["bash", build_script], cwd=pkg_dir)
super().run()