Hi Sonja, Based on the install_requires documentation <https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#install-requires>, it seems that the specified project is installed by pip. Instead of specifying the python tar.gz published on github, I think you should be able to specify based on our pypi release <https://pypi.org/project/protobuf/#history> instead. Can you try install_requires=['protobuf>=3.17.3'] or equivalent for your version requirements and let me know if that works instead?
On Wednesday, August 3, 2022 at 1:57:43 AM UTC-7 [email protected] wrote: > I am trying to include the dependency to protobuf for python with no > binary, and am packaging my library with a setup.py file. I am using the > below code: > > from setuptools import setup, find_packages > setup( name='your package`, > version='0.1', > packages=find_packages(), > install_requires= > [ 'protobuf@ > https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-python-3.17.3.tar.gz' > > ] > ) > > However it gives the error message "no pyproject.toml or setup.py file > found". i have tried various versions/releases of protobif with the same > error. > > When I try to download it manually, I have to first go into the python > folder before I can see the setup.py and I assume that extra step is what's > causing the issue? > > Would you be able to assist how I can go about installing the package with > no binary to avoid this issue? > > Kind regards, > Sonja > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/da3dc2d3-555b-4112-8ff0-6ec683acb663n%40googlegroups.com.
