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

Include a PYTHONPATH extension allowing for user-space packages #18

Open
freakboy3742 opened this issue Apr 15, 2023 · 0 comments
Open
Labels
enhancement New features, or improvements to existing features.

Comments

@freakboy3742
Copy link
Member

freakboy3742 commented Apr 15, 2023

What is the problem or limitation you are having?

The stub app currently sets a PYTHONPATH that includes the app and app_packages paths, plus the stdlib.

These paths are all inside the application bundle, which the user may not have access to modify.

If a user wants to add additional files to the PYTHONPATH (e.g., if you were building a "Jupyter Notebook" app, and wanted the user to be able to access user-installed packages), you can't install that code into app or app_packages.

Describe the solution you'd like

The stub app should include an XDG compliant user path as part of the standard app path. This is probably:

~/.local/share/<app name>/user_packages

Describe alternatives you've considered

Don't allow user-installed packages.

Additional context

See beeware/briefcase-linux-system-template#3 and beeware/briefcase-linux-appimage-template#30 for analogous problems.

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

1 participant