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

Switch to a dynamic framework. #33

Merged
merged 9 commits into from
Aug 11, 2024
Merged

Switch to a dynamic framework. #33

merged 9 commits into from
Aug 11, 2024

Conversation

freakboy3742
Copy link
Member

@freakboy3742 freakboy3742 commented Nov 14, 2023

App template changes to support the use of a dynamically loaded Python.framework.

Refs beeware/Python-Apple-support#191

Also drops Python 3.8 support, and adds Python 3.13 support.

Briefcase-Repo: https://github.com/freakboy3742/briefcase.git
Briefcase-Ref: version-bumps

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@freakboy3742 freakboy3742 marked this pull request as draft July 29, 2024 23:48
@freakboy3742 freakboy3742 marked this pull request as ready for review August 7, 2024 04:07
@freakboy3742 freakboy3742 requested a review from mhsmith August 7, 2024 04:07
@freakboy3742
Copy link
Member Author

freakboy3742 commented Aug 7, 2024

See the Briefcase PR for details on the merge strategy for this template change.

There is one change (in the binary tagging workflow) that will need to be rolled back once beeware/briefcase#1934 has been merged.

@@ -82,7 +86,7 @@ int main(int argc, char *argv[]) {
}

// Set the home for the Python interpreter
python_home = [NSString stringWithFormat:@"%@/support/python-stdlib", resourcePath, nil];
python_home = [NSString stringWithFormat:@"%@/Python.framework/Versions/{{ cookiecutter.python_version|py_tag }}", frameworksPath, nil];
Copy link
Member

Choose a reason for hiding this comment

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

Python.framework/Versions/{{ cookiecutter.python_version|py_tag }} appears 3 times in this function, and {{ cookiecutter.python_version|py_tag }} appears 5 times. Can we factor them out into variables?

@mhsmith mhsmith merged commit e2b216c into main Aug 11, 2024
19 checks passed
@freakboy3742 freakboy3742 deleted the framework-lib branch August 11, 2024 22:43
@freakboy3742 freakboy3742 restored the framework-lib branch August 11, 2024 22:43
@freakboy3742 freakboy3742 mentioned this pull request Aug 11, 2024
4 tasks
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.

2 participants