Skip to content
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

Merged
merged 2 commits into from
Oct 7, 2021

Conversation

armenzg
Copy link
Member

@armenzg armenzg commented Oct 7, 2021

Fixes regression introduced in #29058.

On Big Sur, we cannot install Python 3.6.x without patching the source code first.

Fixes regression introduced in #29058.

On Big Sur, we cannot install Python 3.6.x without patching the source code first.
@armenzg armenzg added the Component: Developer Environment This covers issues related to setting up a developer's environment label Oct 7, 2021
@armenzg armenzg self-assigned this Oct 7, 2021
@armenzg armenzg marked this pull request as ready for review October 7, 2021 13:52
@armenzg armenzg requested a review from a team as a code owner October 7, 2021 13:52
@armenzg armenzg requested a review from joshuarli October 7, 2021 13:53
# 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
Copy link
Member

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.

Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested it on my Intel machine and it seems to work in both cases:

image

image

I've also managed to use the bootstrap script to generate both Python environments.

Copy link
Member

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.

Copy link
Member

@joshuarli joshuarli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joshuarli joshuarli merged commit 90a10aa into master Oct 7, 2021
@joshuarli joshuarli deleted the armenzg/devenv/fix-pyenv-on-intel branch October 7, 2021 22:04
@github-actions github-actions bot locked and limited conversation to collaborators Oct 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: Developer Environment This covers issues related to setting up a developer's environment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants