Skip to content

grl_snam_lab: re-export scene helpers from pycvc_gl (moved there) - #13

Merged
transfix merged 3 commits into
mainfrom
feat/scene-utils-to-pycvc-gl
Jul 26, 2026
Merged

grl_snam_lab: re-export scene helpers from pycvc_gl (moved there)#13
transfix merged 3 commits into
mainfrom
feat/scene-utils-to-pycvc-gl

Conversation

@transfix

Copy link
Copy Markdown
Contributor

The camera/vehicle/lab/scenes helpers moved into the pycvc_gl package (generic cvcGL scene utilities). grl_snam_lab keeps its import paths working by re-exporting from pycvc_gl. Pairs with the libcvc pycvc_gl-package PR and the volrover example update.

transfix added 2 commits July 26, 2026 03:25
camera/vehicle/lab/scenes moved into the pycvc_gl package (generic cvcGL scene
utilities). grl_snam_lab keeps its import paths working by re-exporting from
pycvc_gl, so nothing downstream breaks.
…lab re-export

grl_snam_lab now re-exports its scene helpers from pycvc_gl (moved there in
libcvc #155), so `from pycvc_gl... import *` must resolve in CI. pip can't
install pycvc-gl (a cvcpkg package), so the pip-based CI failed with
ModuleNotFoundError. Migrate CI off pip:

  * .github/workflows/ci.yml — install grl-snam's whole dependency closure
    (pycvc-gl, numpy, torch + pytest/ruff/black) from the cvcpkg catalog via
    the reusable install-deps action, then run black/ruff/pytest against this
    checkout with the prefix's python3.11. Single interpreter (3.11) — the
    closure is cp311.
  * cvcpkg/recipes/grl-snam — add pytest/ruff/black to depends.build (cvcpkg
    has no test-deps group; they stage into the build prefix, stripped on ship)
    and a test.sh bundle self-test (`pytest -q`), the cvcpkg-native
    counterpart to the CI job.
  * grl_snam_lab/lab.py — the compat shim missed _flatten_points (`import *`
    skips underscore names); tests/test_lab.py imports it, so re-export it
    explicitly or the suite fails to import even with pycvc_gl installed.

Requires the upstream publishes to land first: pytest/ruff/black + torch-cp311
(libcvc-deps) and pycvc-gl +cvc.6 (libcvc #155).
@transfix

Copy link
Copy Markdown
Contributor Author

Pushed 46a5f2b: migrate CI off pip to cvcpkg install-deps (pip can't install pycvc-gl), add pytest/ruff/black to the grl-snam recipe's depends.build + a test.sh (pytest -q), and fix the _flatten_points re-export in grl_snam_lab/lab.py (import * skips underscore names, so test_lab.py would fail to import even with pycvc_gl installed).

CI goes green once the upstream chain lands + publishes:

Verified locally: black/ruff pass on grl_snam/tests with the pinned tools; the recipe test.sh runs pytest -q green against a built prefix; the re-export resolves _flatten_points/polyline_indices/terrain_mesh.

…ndings

pytest collected test_lab.py which imports pycvc_gl, whose _pycvc_gl extension
links libcvc.so.3 / cvcGL / VTK from the prefix's lib/. We run the prefix
python directly (no activate), so those weren't on the loader path and import
failed with 'libcvc.so.3: cannot open shared object file'. Export
$PREFIX/lib on LD_LIBRARY_PATH. Verified locally against the full published
closure: black + ruff pass and pytest is 8 passed (incl. the real Lab scene
test, headless).
@transfix
transfix merged commit 02fc852 into main Jul 26, 2026
1 check passed
@transfix
transfix deleted the feat/scene-utils-to-pycvc-gl branch July 26, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant