Skip to content

Conversation

@l0minous
Copy link

Description: Automatically selecting psycopg2-binary for Apple Silicon Macs to avoid compilation issues, while keeping psycopg2 for other platforms. Eliminates the need for users to manually replace psycopg2 with psycopg2-binary as mentioned in the troubleshooting section.

Issue: Fixes #883 - Automate psycopg2 to psycopg2-binary Switch for Apple Silicon

Dependencies: None

Testing:

  • Verified correct package selection on Apple Silicon (ARM64) Mac
  • Fresh installation works without manual intervention

Changes:

  • Added platform-specific markers to pyproject.toml
  • Updated poetry.lock with resolved dependencies
  • Apple Silicon: psycopg2-binary (pre-compiled)
  • Other platforms: psycopg2 (source compilation)

Implementation:
Implemented Poetry's platform-specific dependency markers. Approach automatically selects the correct package based on platform detection, requiring no manual user intervention.

Automatically select psycopg2-binary for Apple Silicon Macs to avoid
compilation issues, while keeping psycopg2 for other platforms.
@cla-assistant
Copy link

cla-assistant bot commented Oct 20, 2025

CLA assistant check
All committers have signed the CLA.

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.

Automate psycopg2 to psycopg2-binary Switch for Apple Silicon

1 participant