Describe the bug
2.3+ python client pip install doesn't work on python slim images, as it pulls in bookkeeper client, which requires gcc to compile a source only dependency (mmh3). This breaks existing build systems that rely on python slim images.
To Reproduce
Use this Dockerfile
FROM python:3.6-slim
RUN pip install pulsar-client
Expected behavior
Before 2.3 the above Dockerfile works fine
Additional context
It appears that the bookkeeper client got pulled into pulsar-client to support pulsar-function writing, which is a new feature. I suggest that we create a separate pulsar-function-client package that depends on the lighter weight pulsar-client.
In some cases, the workaround is to use the full python image (928MB vs 138MB), which may not be possible in other cases.
Describe the bug
2.3+ python client pip install doesn't work on python slim images, as it pulls in bookkeeper client, which requires gcc to compile a source only dependency (mmh3). This breaks existing build systems that rely on python slim images.
To Reproduce
Use this Dockerfile
Expected behavior
Before 2.3 the above Dockerfile works fine
Additional context
It appears that the bookkeeper client got pulled into pulsar-client to support pulsar-function writing, which is a new feature. I suggest that we create a separate pulsar-function-client package that depends on the lighter weight pulsar-client.
In some cases, the workaround is to use the full python image (928MB vs 138MB), which may not be possible in other cases.