Skip to content

[py-psycopg2] Make it usable without pg_config#242

Merged
3nids merged 2 commits into
mainfrom
fix-py-psycopg2-pg-config
May 27, 2026
Merged

[py-psycopg2] Make it usable without pg_config#242
3nids merged 2 commits into
mainfrom
fix-py-psycopg2-pg-config

Conversation

@3nids

@3nids 3nids commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Mirrors the stub-based approach from py-psycopg-c (PR #240): drop a tiny pg_config shim on PATH that returns vcpkg-relative paths for --includedir / --libdir. Fixes 'pg_config executable not found' on macOS arm after microsoft/vcpkg#51250 moved pg_config from tools/libpq/bin/ to tools/libpq/.

Mirrors the stub-based approach from py-psycopg-c (PR #240): drop a tiny pg_config shim on PATH that returns vcpkg-relative paths for --includedir / --libdir. Fixes 'pg_config executable not found' on macOS arm after microsoft/vcpkg#51250 moved pg_config from tools/libpq/bin/ to tools/libpq/.
@3nids 3nids requested a review from m-kuhn May 26, 2026 11:25
@3nids 3nids closed this May 27, 2026
@3nids 3nids reopened this May 27, 2026
@3nids 3nids enabled auto-merge (squash) May 27, 2026 08:12
@3nids 3nids merged commit 36878a9 into main May 27, 2026
5 checks passed
@3nids 3nids deleted the fix-py-psycopg2-pg-config branch May 27, 2026 10:04
3nids added a commit that referenced this pull request May 27, 2026
PR #242 was merged with port-version bumped to 2 and an env_configurable.patch replacing the stub-on-PATH approach, but versions/p-/py-psycopg2.json was never updated. baseline.json pointed to a non-existent git-tree for #1, breaking 'vcpkg install' resolution: 'failed to unpack tree object 14c0fc8'. Register the current port-version 2 with the correct tree.
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.

2 participants