Skip to content

2.3+ python client depends on bookkeeper client #4089

@vicaya

Description

@vicaya

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.

Metadata

Metadata

Assignees

Labels

type/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions