Fix PyPy handling in CalledFromGeneratedFile
The bypassing for PyPy got broken in https://github.com/protocolbuffers/protobuf/pull/10403
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.
I was informed in https://github.com/protocolbuffers/protobuf/issues/10305#issuecomment-1292480567 that this code may be (or may soon be) obsolete but it still seems to be getting built when we use --cpp_implementation, e.g. in this pull request: https://github.com/conda-forge/protobuf-feedstock/pull/167
@anandolee Can you verify if this PR should be reviewed or closed?
Please rebase against main, and we can move this PR forward.
Sorry for the trouble, you caught us in the middle of a migration to GitHub Actions.
@haberman, no problem. Done!
FYI the C++ module in in https://github.com/protocolbuffers/protobuf/tree/main/python is no longer used in our official packages.
We just today released 4.22.0 that contains a proper source package with the new code: https://pypi.org/project/protobuf/#files
@haberman, if those changes make this PR obsolete, you can absolutely feel free to close it. I'm not particularly expert in protobuf, just a package maintainer on conda-forge who need the package as a dependency.