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

Added fix to make sure the python command is valid #331

Merged
merged 2 commits into from
Apr 3, 2022

Conversation

chrfalch
Copy link
Contributor

On MacOS 12.3 Python2 was deprecated and removed. We now only have Python3 to use.

When building with ninja the Skia build system is setup to use python a lot of places through shebangs like #!/usr/bin/env python.

This doesn't work anymore, and this PR has added a few fixes to avoid this issue on newer machines:

  • Updated call to git-sync-deps to use python3
  • Added bash script mapping python -> python3
  • Added this bash script to path
  • Added --script-executable argument to gn gen to make sure it uses python3 as its script interpreter.

Fixes #329

On MacOS 12.3 Python2 was deprecated and removed. We now only have Python3 to use.

When building with ninja the Skia build system is setup to use python a lot of places through shebangs like ` #!/usr/bin/env python`.

This doesn't work anymore, and this PR has added a few fixes to avoid this issue on newer machines:

- Updated call to git-sync-deps to use python3
- Added bash script mapping python -> python3
- Added this bash script to path
- Added --script-executable argument to gn gen to make sure it uses python3 as its script interpreter.
@wcandillon
Copy link
Contributor

awesome 🙌🏼

@wcandillon wcandillon merged commit 5940654 into main Apr 3, 2022
@wcandillon wcandillon deleted the bugfix/329-fix-python2-deprecation branch April 7, 2022 07:28
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.

Skia Library build fails after python2 was deprecated
2 participants