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

Update Usage.md #234

Open
olilarkin opened this issue Sep 30, 2024 · 1 comment
Open

Update Usage.md #234

olilarkin opened this issue Sep 30, 2024 · 1 comment
Labels
enhancement New features, or improvements to existing features.

Comments

@olilarkin
Copy link

What is the problem or limitation you are having?

It seems that maybe a recent switch to a different package layout with the xcframework has made the Usage.md instructions obsolete? I was able to use PythonKit without the module map but it is unclear to me now how i install dependencies since the xcframework contains the site packages folder.

Describe the solution you'd like

update about how it's meant to work

Describe alternatives you've considered

ditto

Additional context

thanks for this cool project!

@olilarkin olilarkin added the enhancement New features, or improvements to existing features. label Sep 30, 2024
@freakboy3742
Copy link
Member

Support for PythonKit is provided on a "best effort" basis; we're happy to incorporate changes to documentation, but we're not actively monitoring for changes.

FWIW, the Briefcase iOS template gives the paths that are used by the new project layout:

NSString *resourcePath = [[NSBundle mainBundle] resourcePath];
NSString *python_home = [NSString stringWithFormat:@"%@/python", resourcePath, nil];
NSString *stdlib_path = [NSString stringWithFormat:@"%@/lib/python3.13", python_home, nil];
NSString *libdynload_path = [NSString stringWithFormat:@"%@/lib/python3.13/lib-dynload", python_home, nil];

I think that is all the detail you need to adapt the current usage guide; if you want to convert that into a PR updating USAGE.md, I'll happily merge those changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features, or improvements to existing features.
Projects
None yet
Development

No branches or pull requests

2 participants