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

microscopic-refrigerator-69774

08/08/2022, 4:33 AM
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

refined-addition-53644

08/08/2022, 6:34 AM
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

happy-kitchen-89482

08/08/2022, 12:19 PM
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