Skip to content

Document and fix Python installation problems on Big Sur #22497

@armenzg

Description

@armenzg

This issue is to track all known issues to doing development of Sentry on Big Sur (Mac's latest OS update). I will update the description of this issue as issues are documented and the associated workaround. If possible, I will look to file upstream issues where appropriate.

Known issues

  • pyenv cannot install Python 3.6.10 w/o custom command. See comment
    • LANDED
    • Here's the command: make setup-pyenv
      • Equivalent to:
# pyenv 1.2.22 and greater (no need for LDFLAGS
pyenv install --skip-existing --patch 3.6.10 < <(curl -sSL https://github.com/python/cpython/commit/8ea6353.patch\?full_index\=1)
# Before pyenv 1.2.22
`LDFLAGS="-L$(xcrun --show-sdk-path)/usr/lib ${LDFLAGS}" pyenv install --skip-existing --patch 3.6.10 < <(curl -sSL https://github.com/python/cpython/commit/8ea6353.patch\?full_index\=1)`

If you don't use the Python version installed via pyenv as we recommend you might encounter this issue:

  • Failing to install psycopg2-binary
    • Workaround SYSTEM_VERSION_COMPAT=1 pip install psycopg2-binary

Upstream issues

Metadata

Metadata

Assignees

Labels

Component: Developer EnvironmentThis covers issues related to setting up a developer's environment

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions