Description
What version of protobuf and what language are you using?
Version: v30.2
Language: Python
What operating system (Linux, Windows, ...) and version?
Linux x86_64
What runtime / compiler are you using (e.g., python version or gcc version)
Python 3.11
What did you do?
Steps to reproduce the behavior:
Doing pip install protobuf
works correctly, i.e. download and install whl file
However doing the same by building from source: pip install --no-binary :all: protobuf
also installs google/__init__/py
file, which for distibutions that install python protobuf system package by building it from source breaks any locally installed packages in the same "google" space, as their modules can no longer be found.
For example:
after building and installing from pypi provided source
running the following results in an error
$ pip install google-auth --user
$ python
>>> import google.auth
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'google.auth'
What did you expect to see
I should be able to faithfully build from source and get the same result as using binary provided whl file.