Replies: 1 comment 1 reply
-
|
Interesting proposal, I'm not sure how well this would work in Pythonista though, as there's only one global interpreter, and it's not really possible to have multiple isolated environments that wouldn't potentially interfere with each other... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://peps.python.org/pep-0723 enables Python files to have a header like:
to Python scripts, which enables:
pipx run my_script.pyoruv run --script my_script.py.When this command is run,
pipxoruvwill import thedependenciesfrom PyPI and put them in an isolatedvenv.Would it be possible/worthwhile for Pythonista to adopt this PEP 723 behavior as a way to solve issues like:
The
requires-pythonbit would not be too helpful in Pythonista because the Python version is fixed, but thedependencieslist could greatly help by automating and simplifying the installation of third-party modules from PyPI.https://thisdavej.com/share-python-scripts-like-a-pro-uv-and-pep-723-for-easy-deployment
Beta Was this translation helpful? Give feedback.
All reactions