Skip to content

Implement python package extras#8

Merged
adsharma merged 6 commits into
mainfrom
subpackages
Feb 18, 2026
Merged

Implement python package extras#8
adsharma merged 6 commits into
mainfrom
subpackages

Conversation

@adsharma

Copy link
Copy Markdown
Contributor

As described here.

The wheel contains all the postgres extensions. But won't be enabled unless you explicitly request the extra such as pgembed[pgvector].

- Create pgembed-pgvector, pgembed-pgvectorscale, pgembed-pgtextsearch packages
- Update base pgembed to detect extensions from installed packages
- Each extension can be installed separately via pip
- Platform-specific: pgvectorscale/pgtextsearch not available on Alpine/Windows
- Update README with new installation instructions
- Extensions are in pgembed/pginstall/lib/postgresql/
- Also check share/postgresql/extension/ for control files
- Update extension packages with proper path detection
- Add _get_pkg_path() to find actual package location
- Warn instead of error when pginstall not found (editable install)
- Lazy-load initdb/pg_ctl commands when needed
- Extension detection uses correct lib/postgresql path
The original working config just used CIBW_MANYLINUX which sets the
image globally for all manylinux builds. The typos (MUSHLINUX) were
ignored. Removing the per-arch options that aren't needed.
pgvectorscale and pgtextsearch are not built by default on Windows
since they require Rust and have symlink issues during extraction.
@adsharma adsharma merged commit b3b81ee into main Feb 18, 2026
5 checks passed
@adsharma adsharma deleted the subpackages branch February 18, 2026 15:43
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