Skip to content

Configure extra compile args in setup.py#28264

Closed
mitchallain wants to merge 2 commits into
protocolbuffers:mainfrom
mitchallain:mallain/fix-python-upb-symbols
Closed

Configure extra compile args in setup.py#28264
mitchallain wants to merge 2 commits into
protocolbuffers:mainfrom
mitchallain:mallain/fix-python-upb-symbols

Conversation

@mitchallain

@mitchallain mitchallain commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Fixes #28261 by setting symbol visibility in setup.py, similar to py_extension.bzl, using the existing branching logic to bypass the flag on MSVC.

This issue manifests in the NixOS/nixpkgs build of the protobuf python package, which contains upb symbols, and causes fatal failures when loaded in a process that separately links/loads libprotobuf. We'll supply a patch there as well, until this can be backported or released in future protobuf versions.

@mitchallain mitchallain requested a review from a team as a code owner June 29, 2026 22:10
@mitchallain mitchallain requested review from anandolee and removed request for a team June 29, 2026 22:10
@google-cla

google-cla Bot commented Jun 29, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@haberman haberman self-requested a review June 30, 2026 23:30
@runzw runzw added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jun 30, 2026
@github-actions github-actions Bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jun 30, 2026
@copybara-service copybara-service Bot closed this in 3aa022a Jul 3, 2026
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.

Inconsistency between bazel and setuptools builds of CPython extension module.

3 participants