From 927e6f0796a813736dd349693b1e98aa0cf87cf9 Mon Sep 17 00:00:00 2001 From: Pritam Dodeja Date: Sun, 8 Mar 2026 08:18:45 -0400 Subject: [PATCH 1/2] Remove python 2 symbols, match packages to what we have in document environment --- ml_metadata/ml_metadata.bzl | 2 -- setup.py | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ml_metadata/ml_metadata.bzl b/ml_metadata/ml_metadata.bzl index a22aff948..2ec8334d7 100644 --- a/ml_metadata/ml_metadata.bzl +++ b/ml_metadata/ml_metadata.bzl @@ -224,8 +224,6 @@ def ml_metadata_pybind_extension( # For Linux, include Python 2 symbols for compatibility # (version script allows undefined symbols) exported_symbols_linux = [ - "init%s" % sname, - "init_%s" % sname, "PyInit_%s" % sname, ] diff --git a/setup.py b/setup.py index 6382725a5..5c22784f9 100644 --- a/setup.py +++ b/setup.py @@ -163,9 +163,9 @@ def run(self): # Make sure to sync the versions of common dependencies (absl-py, numpy, # six, and protobuf) with TF. install_requires=[ - 'absl-py>=0.9,<2.0.0', - 'attrs>=20.3,<24', - 'grpcio>=1.8.6,<2', + 'absl-py>=0.9,<2.3.2', + 'attrs>=20.3,<25.5', + 'grpcio>=1.8.6,<1.66', f'protobuf>={"4.25.2" if _IS_PY311 else "4.21.6"},<5', 'six>=1.10,<2', ], From 68adf024c5d4d6abade111e18193d063e0bf72e1 Mon Sep 17 00:00:00 2001 From: Pritam Dodeja Date: Wed, 11 Mar 2026 03:07:18 -0400 Subject: [PATCH 2/2] Text change about python 2 symbols --- ml_metadata/ml_metadata.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml_metadata/ml_metadata.bzl b/ml_metadata/ml_metadata.bzl index 2ec8334d7..6a37df23c 100644 --- a/ml_metadata/ml_metadata.bzl +++ b/ml_metadata/ml_metadata.bzl @@ -221,7 +221,7 @@ 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 = [ "PyInit_%s" % sname,