-
-
Notifications
You must be signed in to change notification settings - Fork 686
Add troubleshooting section for PEX on Windows and EXE #22898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Describe potential issues when shipping for Windows
|
@stan-dot Pex doesn't support Windows at all yet (except by luck or when run under WSL): pex-tool/pex#2639. Neither does Pants (except when run under WSL; in other words, when run on Linux): https://www.pantsbuild.org/stable/docs/getting-started/prerequisites#microsoft-windows. If you want Windows support out of Pants or Pex you are out of luck. |
|
yeah I only realized hours after I made this ticket. I think it'd be good for Pants to include 'DOES NOT SUPPORT WINDOWS' in the FAQ section or 'is this suitable for my project' to allow for faster elimination if does not fit the use case |
|
It's in the prerequisites (the Pants part, specifically): |
|
I don’t appear to be able to move this to the pantsbuild.org, but I’m working on slowly updating the docs. Part of that will be splitting up users of Pants, from developers of Pants. I think in the Users section, it might be worth a section for building artifacts for various platforms. A non-exhaustive list, but for example, I can build a Node app that works cross-platform using Pants. Ditto JVM stuff. It’s specifically Python/Pex, bash, NFPM, and a few other backends where the produced artifacts are limited by OS (currently). |
|
And... the engine, right? IIUC exactly 1 crate is tested on Windows. |
I guess, but I don't think users of Pants are producing the Pants engine as an artifact to distribute to others, whereas I use the JS backend and some custom plugins to distribute executables to people. |
|
Sure, but this does affect any native artifact unless the tool chain Pants uses to produce that artifact can cross compile. I just bring this up because Pants has a clear path to get the engine running on Windows and, besides porting 1 crate, it has consistently ignored doing this work. |
Describe potential issues when shipping for Windows