Skip to content

Conversation

@copybara-service
Copy link
Contributor

@copybara-service copybara-service bot commented Dec 20, 2025

Fix TF-text.

This is a combination of a collection of changes to fix the TF-text build. All are required
for a successful build.

  1. Upgrade ICU to v77.1
    • Requires changes to ICU build file, updating ICU data, updating test goldens
    • Added custom_http_archive rule to allow excluding files.
  2. Replace tensorflow.bzl:pybind_extension with tsl.bzl:pybind_extension
    • Forces creation of pybind .so files to include in the wheel.
  3. Patch TF build file to exclude libtensorflow_framework source files.
    • Avoids ODR issues causing double-registrations.
  4. Update requirements files
    • TF 3.9, 3.10 are somewhat fundamentally broken because of tensorflow-metadata,
      which restricts the protobuf version below what TF requires. Though this turns out
      not to be a hard requirement, by skipping the requirements.update in configure and manually
      setting package versions, we can create a successful build.
  5. Replace the build_pip_package.sh with a python version
    • Allows using the hermetic python toolchain to build the wheel. Avoids the need for docker.
  6. Fix random missing deps.

@copybara-service copybara-service bot force-pushed the test_847172303 branch 6 times, most recently from c0c6000 to 600bdfa Compare December 20, 2025 22:14
This is a combination of a collection of changes to fix the TF-text build.  All are required
for a successful build.

1. Upgrade ICU to v77.1
   - Requires changes to ICU build file, updating ICU data, updating test goldens
   - Added `custom_http_archive` rule to allow excluding files.
2. Replace `tensorflow.bzl:pybind_extension` with `tsl.bzl:pybind_extension`
   - Forces creation of pybind .so files to include in the wheel.
3. Patch TF build file to exclude `libtensorflow_framework` source files.
   - Avoids ODR issues causing double-registrations.
4. Update requirements files
   - TF 3.9, 3.10 are somewhat fundamentally broken because of tensorflow-metadata,
     which restricts the protobuf version below what TF requires.  Though this turns out
     not to be a hard requirement, by skipping the requirements.update in `configure` and manually
     setting package versions, we can create a successful build.
5. Replace the `build_pip_package.sh` with a python version
   -  Allows using the hermetic python toolchain to build the wheel.  Avoids the need for docker.
6. Fix random missing deps.

PiperOrigin-RevId: 847172303
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