by ofek on 12/13/23, 4:17 PM with 44 comments
by pantsforbirds on 12/13/23, 5:36 PM
by anze3db on 12/13/23, 5:39 PM
Leave it to ofek to tackle one of the toughest problems in Python!
by dkroy on 12/13/23, 5:00 PM
by simonw on 12/13/23, 11:40 PM
- Why is it using Cargo if this is a Python tool?
- How does it know that it should install "cowsay"? Is the only reference to cowsay that "export PYAPP_PROJECT_NAME=cowsay" line?
by delijati on 12/13/23, 9:39 PM
[1] https://github.com/jart/cosmopolitan/issues/141#issuecomment... [2] https://github.com/delijati/docker-shiv#add-python-interpret...
by Gazoche on 12/14/23, 4:44 AM
Definitely going to keep an eye on this, though. My company has been using pyInstaller to distribute Python tools and it's a bit of a PITA, so any alternative is welcome.
by qubidt on 12/13/23, 7:23 PM
by davins90 on 12/14/23, 12:51 PM
If I understood it well, does this allow to create an executable file for python file that, even if built on windows, can run on mac, linux, whatever.... right?
in this way i can share my python code as an exe file that "not expert" can simply use by executing them on their machine, even if they don't have python installed... right?
I'm wondering if this can work inside a docker container: at the moment I develop every project inside a docker container, each with its requirements.txt. file.
Can I run this "pyapp" inside the docker (so Linux env) to create the exe file?
Have I understood it well?
Thanks very much!
by AndyKluger on 12/14/23, 4:11 AM
For some possibly useful documentation feedback: I got confused.
Normally I would install a tool, check out its `--help` content, then maybe try it out. I think based on my attempts to do this and read the docs, is that this is not currently possible for PyApp. Instead you must have a Python app you'd like to setup for compilation before you can install PyApp at all (at least when using the cargo installation method). Is that right? And then when installing the tool it will also go ahead and compile the currently configured Python package?
by holbue on 12/14/23, 9:59 PM
P.S.: It has already been mentioned, but I also find the "cowsay" example more confusing than informative. "cowsay" isn't even written in Python, but in Perl, isn't it? Maybe a simple hello-world.py example would work better :)
by pacifika on 12/13/23, 8:42 PM
by chrooted-user on 12/14/23, 5:17 AM
That would solve a big problem in air-gapped environments :-)
by pabe on 12/13/23, 5:16 PM