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

[feature request] optionally compress bundled venv to zip or tar.gz file #42

Open
kazdy opened this issue Nov 30, 2022 · 2 comments · May be fixed by #72
Open

[feature request] optionally compress bundled venv to zip or tar.gz file #42

kazdy opened this issue Nov 30, 2022 · 2 comments · May be fixed by #72

Comments

@kazdy
Copy link

kazdy commented Nov 30, 2022

Hi,

I would like to ask if this is a good idea to add an option to save bundled venv to .zip or tar.gz file.
The usecase is for providing pyspark code and dependencies, it supports venv-pack tar.gz file which basically works the same as this bundle plugin, except it creates tar.gz file.
See: https://spark.apache.org/docs/latest/api/python/user_guide/python_packaging.html#using-virtualenv

@loesak
Copy link

loesak commented Dec 16, 2022

this would be also nice for creating aws lambdas

@LotemAm LotemAm linked a pull request Aug 1, 2023 that will close this issue
@radoering
Copy link
Member

Afaik, venvs are not portable in general so creating an archive has some restrictions. To avoid raising false hopes, we should definitely document them. Some good starting point might be the caveats of venv-pack. Before accepting a solution like #72, I want to make sure we at least know the most obvious limitations. If anyone has experience with archiving venvs and using them somewhere else, please leave a comment with well-known restrictions of such an approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants