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

Support pyoxidizer to generate standalone executables #204

Open
richnetdesign opened this issue Aug 27, 2019 · 1 comment
Open

Support pyoxidizer to generate standalone executables #204

richnetdesign opened this issue Aug 27, 2019 · 1 comment

Comments

@richnetdesign
Copy link

I really like gitman (and dislike submodules), and would like to bundle gitman up as a static exe for those on my team. Unlike pyinstaller which is slow as it unzips python runtime and app. Py-oxidizer can create faster static python executables

Unfortunately, somethign with the project configuration is causing a build error.
Here are the steps to reproduce:

cargo install pyoxidizer

pyoxidizer init --pip-install gitman oxi-gitman
cd oxi-gitman
pyoxidizer build

This is the error I get:

LookupError: https://files.pythonhosted.org/packages/2b/7e/372f12f571f8dcb855f3444c3ca463399fa1d76fcb8dd48d476c2cd1a610/tomlkit-0.5.5.tar.gz#sha256=a8d806f3a453c2d292afe97918398354e405b93919e2e68771a3fd0a90e89576 (from https://pypi.org/simple/tomlkit/) (requires-python:>=2.7, !=3.0., !=3.1., !=3.2., !=3.3.) is already being built: tomlkit<0.6.0,>=0.5.1 from https://files.pythonhosted.org/packages/2b/7e/372f12f571f8dcb855f3444c3ca463399fa1d76fcb8dd48d476c2cd1a610/tomlkit-0.5.5.tar.gz#sha256=a8d806f3a453c2d292afe97918398354e405b93919e2e68771a3fd0a90e89576 (from poetry>=0.12)

I don't imagine this is a high priority, but I think the goal of making gitman more accessible to those not using python would be a good project goal. Personally I'd like to see it built into git.

@daniel-brosche
Copy link
Collaborator

I have good experiences in using pyinstaller under linux and windows. I think in the near future I will compare it to the Py-oxidizer.

Did you already tried to fetch the py-oxidizer via poetry as described here. To make this work you should add the dependency in the pyproject.toml in the same way as the pyinstaller resp. try to install it manually into the virtual enviroment via poetry run.

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

No branches or pull requests

3 participants