Skip to content

Commit ac4e23d

Browse files
[#9] Pin SWIG to epoch 4 (<4.4.0)
1 parent ad326fb commit ac4e23d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ dependencies = [
1515
# provides a self-contained binary on all platforms and is detected
1616
# automatically by bsk_add_swig_module.cmake via the Python interpreter.
1717
#
18-
# SWIG 4.4.0 bumped SWIG_RUNTIME_VERSION from "4" to "5", changing the
19-
# capsule name from swig_runtime_data4 to swig_runtime_data5. bsk is built
20-
# with SWIG 4.3.1 (runtime version 4), so plugins must also use a <4.4
21-
# SWIG to share the same type table and make cross-module type casts work.
22-
"swig>=4.2.1,<=4.3.1",
18+
# SWIG 4.4.0 changed SWIG_RUNTIME_VERSION from "4" to "5" (and 4.4.1 kept
19+
# epoch 5), breaking cross-module type casts with bsk which is built on
20+
# epoch 4. Both bsk and bsk-sdk pin <4.4.0 to stay on epoch 4.
21+
# The cmake check in bsk_add_swig_module enforces the match at build time.
22+
"swig>=4.2.1,<4.4.0",
2323
]
2424

2525
[project.entry-points."cmake.prefix"]

0 commit comments

Comments
 (0)