Skip to content

pycvc + pycvc-gl: bump to +cvc.3 (SWIG 4.4.1 / data5 runtime rebuild) - #145

Merged
transfix merged 1 commit into
masterfrom
chore/pycvc-family-cvc3-swig441
Jul 24, 2026
Merged

transfix merged 1 commit into
masterfrom
chore/pycvc-family-cvc3-swig441

Conversation

@transfix

Copy link
Copy Markdown
Owner

What

Bump pycvc and pycvc-gl from +cvc.2 to +cvc.3. Same source, no API change — a toolchain rebuild only.

Why

The published +cvc.2 pycvc family was built with SWIG 4.2.0 (swig_runtime_data4), but the cvcpkg swig recipe is now 4.4.1 (swig_runtime_data5). SWIG cross-module type sharing links per-process type tables keyed by a version-specific capsule name, so any consumer that %imports pycvc.i and is built with the 4.4.1 toolchain silently fails to share pycvc's std::shared_ptr<cvc::app> type:

TypeError: in method 'state_set', argument 1 of type 'std::shared_ptr< cvc::app > const &'

…even though the mangled type names are identical. This bit pycvc-gl and the new volrover3 vrhost host-control module (which delivers the live cvc::app to embedded Python scripts).

Bumping both packages in lockstep keeps the family on one SWIG runtime.

Verification (local, against deps-vr3)

  • pycvc + pycvc-gl rebuilt with the 4.4.1 swig → both emit swig_runtime_data5.
  • import pycvc, pycvc_gl together; pycvc_gl.Scene(pycvc.make_app()) accepted (shared app type).
  • volrover3 vrhost round-trip green: pycvc.state_set(vrhost.host.app(), "volrover3.vrhost_demo", "99") reaches the same C++ cvc::state tree. Full volrover3 suite 12/12.

After merge

Publish pycvc + pycvc-gl 3.2.4+cvc.3 (linux/x86_64) to cvcpkg.org, superseding the +cvc.2 data4 bundles.

…uild)

The +cvc.2 pycvc family was built with SWIG 4.2.0 (swig_runtime_data4), but the
cvcpkg `swig` recipe is now 4.4.1 (swig_runtime_data5). Cross-module SWIG type
sharing links per-process type tables keyed by a version-specific capsule name, so
any consumer that `%import`s pycvc.i and is built with the 4.4.1 toolchain
(pycvc-gl, and volrover3's new `vrhost` host-control module) silently fails to
share pycvc's std::shared_ptr<cvc::app> type — `pycvc.state_set(host.app(), …)`
raises `TypeError: argument 1 of type 'std::shared_ptr< cvc::app > const &'` even
though the mangled type names are identical.

Same source, no API change — a toolchain rebuild only. Bump both packages in
lockstep so the family stays on one SWIG runtime. Verified locally: pycvc +
pycvc-gl rebuilt with the 4.4.1 swig both emit swig_runtime_data5, import together,
share the app type (pycvc_gl.Scene(pycvc.make_app()) accepted), and volrover3's
vrhost round-trip (pycvc.state_set(vrhost.host.app(), …) reaching the C++ state
tree) passes — all 12 volrover3 tests green.
@transfix
transfix merged commit f98c429 into master Jul 24, 2026
2 of 7 checks passed
@transfix
transfix deleted the chore/pycvc-family-cvc3-swig441 branch July 24, 2026 17:36
transfix added a commit that referenced this pull request Jul 25, 2026
…c.3, pycvc-gl +cvc.4) (#148)

* build(cvcpkg): hermetic family republish — drop apt X11/GL, cvcgl +cvc.3 / pycvc-gl +cvc.4

The X11/OpenGL that cvcgl/pycvc-gl's VTK build needs now comes hermetically from
the cvcpkg vtk bundle (9.5.0+cvc.2, built against the X11/OpenGL recipes in
libcvc-deps #365/#368) — so publish-cvcpkg.yml drops the `apt-get libx11-dev
libxt-dev libgl1-mesa-dev libglu1-mesa-dev` step; `cvcpkg install vtk` already
stages libx11/libxext/libxt/libglvnd/glu into the prefix.

Rebuild the two VTK-linking members against the hermetic VTK:
  cvcgl    2 -> 3
  pycvc-gl 3 -> 4  (was +cvc.3 from #145's SWIG 4.4.1 rebuild; keeps that runtime)
libcvc and pycvc don't link VTK, so they stay +cvc.2 / +cvc.3.

* fix(ci): install xorgproto for cvcgl's VTK FindX11 (X11/X.h not transitive via vtk)
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