You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/08/24 09:19:51 UTC
[GitHub] [pulsar] RobertIndie commented on pull request #17232: [improve][python] Add requirements.txt for the python client
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="dev@pulsar.apache.org",
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org