This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 340825644f [Python] Bump apache-tvm-ffi floor to >=0.1.13.post2 
(#20094)
340825644f is described below

commit 340825644fbb7728a57434f8d92705eec837f21b
Author: Ruihang Lai <[email protected]>
AuthorDate: Wed Aug 5 18:32:35 2026 -0400

    [Python] Bump apache-tvm-ffi floor to >=0.1.13.post2 (#20094)
    
    The bundled `3rdparty/tvm-ffi` gitlink is at `v0.1.13-post2` (#20088),
    so TVM compiles against post2 headers. The wheel does not bundle
    `libtvm_ffi.so` — it is excluded from the auditwheel, delocate and
    delvewheel repair commands in `pyproject.toml` — so the runtime library
    is whatever the `apache-tvm-ffi` dependency resolves to at install time.
    That makes this floor an ABI contract rather than a formality.
    
    `ModuleObj::GetFunction` changed from `virtual Function` to `virtual
    Optional<Function>` between `0.1.13` and `0.1.13.post2`
    (apache/tvm-ffi#700, apache/tvm-ffi#701). That is a C++ vtable boundary
    whose mangled symbol does not encode the return type, so pairing a
    post2-compiled TVM with an older `libtvm_ffi.so` fails silently rather
    than at link time, and there is no runtime version guard that would
    catch it.
    
    A plain `pip install` already resolves to post2 since pip picks the
    newest match, so this is latent rather than universal; raising the floor
    closes the pinned and constrained resolves that `>=0.1.13` still
    permits. The same bump is included in #20093 for the v0.26.0 release
    branch.
---
 .github/workflows/main.yml | 2 +-
 pyproject.toml             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 4a7ef63ced..6ff75d1aea 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -70,7 +70,7 @@ jobs:
           from importlib.metadata import requires, version
 
           assert version("apache-tvm-ffi") == os.environ["TVM_FFI_VERSION"]
-          assert "apache-tvm-ffi>=0.1.13" in requires("apache-tvm")
+          assert "apache-tvm-ffi>=0.1.13.post2" in requires("apache-tvm")
           PY
 
       - name: Test
diff --git a/pyproject.toml b/pyproject.toml
index 14af7d4c8b..880e6bb070 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -50,7 +50,7 @@ classifiers = [
   "Topic :: Software Development :: Libraries :: Python Modules",
 ]
 dependencies = [
-  "apache-tvm-ffi>=0.1.13",
+  "apache-tvm-ffi>=0.1.13.post2",
   "ml_dtypes",
   "numpy",
   "typing_extensions",

Reply via email to