From 163eb6d6e7f2b58bd06e4d9abff8a1761b25149b Mon Sep 17 00:00:00 2001 From: Pritam Dodeja Date: Mon, 23 Feb 2026 04:54:06 -0500 Subject: [PATCH] Remove python 2 init symbols to get compilation to work on 3.12.4 Stricter llvm linker was not allowing compilation to succeed. --- ml_metadata/ml_metadata.bzl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ml_metadata/ml_metadata.bzl b/ml_metadata/ml_metadata.bzl index a22aff948..6a37df23c 100644 --- a/ml_metadata/ml_metadata.bzl +++ b/ml_metadata/ml_metadata.bzl @@ -221,11 +221,9 @@ def ml_metadata_pybind_extension( "PyInit_%s" % sname, ] - # For Linux, include Python 2 symbols for compatibility + # For Linux, do not include Python 2 symbols for compatibility # (version script allows undefined symbols) exported_symbols_linux = [ - "init%s" % sname, - "init_%s" % sname, "PyInit_%s" % sname, ]