Skip to content

backport python package requirements install support#1146

Merged
yokofly merged 3 commits intodevelopfrom
backport/python-package-aa38-7390
Mar 25, 2026
Merged

backport python package requirements install support#1146
yokofly merged 3 commits intodevelopfrom
backport/python-package-aa38-7390

Conversation

@yokofly
Copy link
Copy Markdown
Collaborator

@yokofly yokofly commented Mar 25, 2026

Summary

  • accept PEP 508 extras in SYSTEM INSTALL PYTHON PACKAGE, e.g. confluent-kafka[protobuf, avro]
  • normalize the package lookup name for pip show and uninstall so extras-bearing specs do not break package management
  • refresh Python import state after install by re-processing site directories and invalidating import caches
  • extend __path__ only for legacy namespace packages declared via pkg_resources.declare_namespace() so packages like google.protobuf become visible after install without broadening ordinary package semantics
  • warn when installing confluent-kafka because the wheel bundles its own librdkafka, which can conflict with Proton's in-process librdkafka; the warning points users to confluent-kafka==2.1.1 as a known-good version and suggests checking confluent_kafka.libversion() at runtime
  • add focused unit coverage for extras parsing, lookup-name behavior, .pth processing, and namespace package refresh behavior

yokofly and others added 3 commits March 25, 2026 02:19
Co-Authored-By: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
@yokofly yokofly merged commit 3d64a2c into develop Mar 25, 2026
7 of 11 checks passed
@yokofly yokofly deleted the backport/python-package-aa38-7390 branch March 25, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant