|
|
|
|
|
by db65edfc7996
1493 days ago
|
|
>What's the point of this? Why would I want a single-file version of Python? If I want to deploy a Python program on a Windows machine, my current workflow is roughly: - Install Python system wide
- Ensure there is Python venv + pip + (QoL) virtualenvwrapper
- Create virtual environment per program
- Load up my code
Not horrible, but if I could package Python + extra code into a zip file, I could just create foobar-v20220512.zip send that to anybody, and have them unzip the entire program into the same directory every time. Then they could do it without admin privileges and with the most minimal of user training. Easy versioning to boot.PyInstaller, Nukita, etc probably already make this possible, but I have never taken the plunge to explore them. I have assumed there are some rough edge gotchas (C libraries) that would make me regret the decision. |
|
https://shiv.readthedocs.io/en/latest/
EDIT: oh I just read through the PyOxidizer docs, seems like they already do have this capability as a goal, PyOxy is actually extracting out the shippable one-exec python out.