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

If it's worthwhile for poetry to support generate executable and self-contained python zip archives(zipapp)? #3488

Closed
innerNULL opened this issue Dec 14, 2020 · 6 comments
Labels
kind/feature Feature requests/implementations

Comments

@innerNULL
Copy link

innerNULL commented Dec 14, 2020

Hi, recently I'm thinking about that if poetry can support building zipapp (ref to 28.4. zipapp — Manage executable python zip archives and PEP 441),with this feature, when submitting jobs to clusters such as spark is much more convinent for poetry-building projects~

@innerNULL innerNULL added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Dec 14, 2020
@innerNULL innerNULL changed the title If it's worthwhile for poetry to support generate executable python zip archives(zipapp)? If it's worthwhile for poetry to support generate executable and self-contained python zip archives(zipapp)? Dec 14, 2020
@sinoroc
Copy link

sinoroc commented Dec 14, 2020

Maintainers somewhat have this feature in mind. I could not find a specific dedicated ticket on this though, but here are somewhat related tickets:

@hyliu1989
Copy link
Contributor

Our group decided to use shiv to create the zip archives. You can also check that out. At current stage, unfortunately, to communicate the python environment specification with our collaborators and even within our group needs this tool...

@innerNULL
Copy link
Author

innerNULL commented Dec 15, 2020

Our group decided to use shiv to create the zip archives. You can also check that out. At current stage, unfortunately, to communicate the python environment specification with our collaborators and even within our group needs this tool...

@hyliu1989 Got it, thank u for your work~

@sinoroc
Copy link

sinoroc commented Dec 15, 2020

Ah yes, if you are open to 3rd party tools then shiv is a good one. There is also pex. And I wrote zapp that has very limited features but works well enough for very simple projects (without C extensions, etc.):

@innerNULL
Copy link
Author

Ah yes, if you are open to 3rd party tools then shiv is a good one. There is also pex. And I wrote zapp that has very limited features but works well enough for very simple projects (without C extensions, etc.):

* https://pypi.org/project/shiv/

* https://pypi.org/project/pex/

* https://pypi.org/project/zapp/

@sinoroc haha for now, I'm using a trick that 1st execute poetry run which python to get the virtual python env path, and then I can copy and archive the whole path as a zip file and using this zip when running some jobs on clusters such as spark : )

@sinoroc sinoroc mentioned this issue Jan 4, 2021
2 tasks
@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations
Projects
None yet
Development

No branches or pull requests

4 participants