-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(dev): Install Python 3.6.x with --patch on Big Sur #29149
Conversation
Fixes regression introduced in #29058. On Big Sur, we cannot install Python 3.6.x without patching the source code first.
# I'm assuming that SENTRY_PYTHON_VERSION won't be used to specify a 3.6 version to simplify the condition | ||
# When a user sets a SENTRY_PYTHON_VERSION they intend to use a non-default version that I assume | ||
# is newer, thus, can install with the non-source-patched default pyenv install command | ||
if query-big-sur && [[ -z "${SENTRY_PYTHON_VERSION:-}" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work; I have SENTRY_PYTHON_VERSION set to 3.8.12 and the patch only applies to 3.6.10.
I think the issue you're having is that you're on M1 and big sur.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we should just patch install if [ "${PYENV_VERSION}" = 3.6.10 ]
and remove the platform and os checks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wrong - what you have, works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes regression introduced in #29058.
On Big Sur, we cannot install Python 3.6.x without patching the source code first.