RobertIndie commented on PR #17232:
URL: https://github.com/apache/pulsar/pull/17232#issuecomment-1225458250

   
   > I don't know whether Python can resolve and install dependencies from 
`setup.py`, but it seems all required packages is beyond the current 
`requirements.txt`. For example, it can requires `grpcio`.
   
   Good question. I investigated it and found that we need to speficy the 
`setup_requires` to make it automatically install dependencies when installing 
the python binding. Like
   ```python
   setup(
       name=NAME,
       version=VERSION,
       packages=['pulsar', 'pulsar.schema', 'pulsar.functions'],
       cmdclass={'build_ext': my_build_ext},
       ext_modules=[Extension('_pulsar', [])],
   
       author="Pulsar Devs",
       author_email="[email protected]",
       description="Apache Pulsar Python client library",
       license="Apache License v2.0",
       url="https://pulsar.apache.org/";,
       install_requires=dependencies,
       setup_requires=dependencies,   # <-  Need to specify setup_requires
       extras_require=extras_require,
   )
   ```
   But I don't know how to make it automatically install the required minimum 
dependencies when installing other modules. Like `avro` and `functions`. 
   And the minimum dependency is actually only `certifi`.
   
   Any ideas on this? /cc @BewareMyPower @shibd 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to