https://pantsbuild.org/ logo
#general
Title
# general
c

clever-hamburger-59716

03/13/2023, 6:59 PM
Hi Folks, What is the state of the art when it comes to packaging (fully contained) python applications to run on Windows? We would like to ship our app (which we package into a pex today) to end users on Windows. For Linux and Mac it looks like we can build a scie (with a pex bundled), what's the story on the windows side? Is there a mechanism like PyOxidizer where I can point to a distribution?
p

polite-garden-50641

03/13/2023, 7:02 PM
h

happy-kitchen-89482

03/13/2023, 7:05 PM
There is work in progress to support pex on windows, and I believe scie already does (or will shortly after that), but I don't have an ETA unfortunately
c

clever-hamburger-59716

03/13/2023, 7:05 PM
@polite-garden-50641, thank you! However, I think PyOxidizer is not great. It produces these sidecars (and forgive me for the loose use of this word) which are huge. I pointed it out here for Numpy: https://pantsbuild.slack.com/archives/C046T6T9U/p1677792637951899?thread_ts=1677705743.828699&cid=C046T6T9U
Thanks @happy-kitchen-89482! That would be great if scie already supports pex on windows. I haven't tried it and assumed it wont work as pex is not supported on windows. Any option outside the pex world but in the pants realm? PyInstaller worked but again was producing large deps.
e

enough-analyst-54434

03/14/2023, 7:02 PM
The scie jump has supported Windows since its 1st public release in November 2022: https://github.com/a-scie/jump/releases/tag/v0.1.10 From that day on you could ship native Windows Python executables using scie-jump + Python Build Standalone + (for example) shiv. As soon as Pex gains Windows support, you can switch from shiv or handcrafted zips to Pex.
c

clever-hamburger-59716

03/16/2023, 12:58 AM
Thanks @enough-analyst-54434 ! Super helpful, shall give shiv a try then.