build: add reproducible mmdet patch script

Add an idempotent patch-mmdet-version-gate entrypoint that rewrites the installed mmdet mmcv compatibility assert into a warning so the local rebuilt mmcv wheel can be reused after uv sync.

Cover the source rewrite with focused tests and document the post-sync command in the README so the local environment patch is reproducible instead of being a one-off manual edit inside .venv.
This commit is contained in:
2026-03-26 16:35:56 +08:00
parent a5d03e6edc
commit 061d5b4592
5 changed files with 160 additions and 0 deletions
+1
View File
@@ -44,6 +44,7 @@ detection = [
[project.scripts]
pose-tracking-exp = "pose_tracking_exp.cli:main"
patch-mmdet-version-gate = "pose_tracking_exp.detection.patch_mmdet:main"
[tool.hatch.build.targets.wheel]
packages = ["src/pose_tracking_exp"]