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:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user