You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well that's... annoying. Can't argue with the logic, but it's going to require a bunch of changes to accomodate it - the support package will need to be updated to produce the "lib/python3.11" rather than "python-stlib" location. The good news is that the recent change to Briefcase version-based branching and support package version pinning means we can introduce this change without breaking anything.
I'd say option (3) is probably our best option; if nothing else, it would allow for other code to be added to the lib folder. In the interests of avoiding hideously deep directory structures, it might also be worth exploring whether the support subfolder is needed, or whether we could use lib as the support folder.
Describe the bug
The
main.m
program which initialises the Python runtime sets PYTHONHOME here:briefcase-macOS-Xcode-template/{{ cookiecutter.formal_name }}/{{ cookiecutter.class_name }}/main.m
Lines 53 to 56 in fdcbf96
This is does not work as intended. As documented in https://docs.python.org/3/using/cmdline.html#envvar-PYTHONHOME, the
home
is suffixed with/lib/python3.11
, resulting in the Python runtime believing thatis the location of its stdlib.
In practice, this is not a problem because we later explicitly include the stdlib in the Python path:
briefcase-macOS-Xcode-template/{{ cookiecutter.formal_name }}/{{ cookiecutter.class_name }}/main.m
Lines 121 to 124 in fdcbf96
This does mean however that the initially quoted lines currently are not useful at all.
To Reproduce
Additional context
We could do either of the following:
Contents/Resources/support/lib/python3.11
The text was updated successfully, but these errors were encountered: