nutonomy / nuscenes-devkit

The devkit of the nuScenes dataset.
https://www.nuScenes.org
Other
2.18k stars 616 forks source link

Add support for bazel (open to discussion) #1044

Open michael-hoss opened 3 months ago

michael-hoss commented 3 months ago

I am currently using the devkit's tracking evaluation as a submodule in my own bazel repo.

Let me know if you are generally interested making nuscenes-devkit bazel-compatible. If so, I would be happy to tidy up the contribution for a merge. Right now, this PR only includes bazel files needed for the tracking evaluation.

By then having the WORKSPACE file in the mother repo like this,

workspace(name = "name-of-mother-repo")

local_repository(
    name = "nuscenes-devkit",
    path = "path/to/submodule/nuscenes-devkit",
)

users of nuscenes-devkit can include bazel dependencies such as @nuscenes-devkit//python-sdk/nuscenes:nuscenes from their mother repos.