Hi all, Is there any way I can make the pex file w...
# general
m
Hi all, Is there any way I can make the pex file work on windows? And if not then what can be the ideal solution to distribute a python project as executable from the pants project? Has anyone tried it before?
r
You can build everything inside a docker container. This will mean you need to copy all/relevant part of your repo inside a docker container. You can use multi state build. I'm in somewhat similar situation since we work on macos locally.
h
Pex v1 used to work on Windows, apparently. There has been some work to get Pex v2 to run on Windows (both the tool and the resulting .pex files) but this has been held up for a while
You can run linux pexes under WSL2, but that may or may not be helpful to your use case
What this really needs is someone who understands Windows well enough to make it happen, with our help
1