I've spent the last few days figuring out how to g...
# general
I've spent the last few days figuring out how to get Pants running on Windows Subsystem for Linux (WSL). There were actually plenty of hurdles. Here are my instructions: https://github.com/BruceEckel/RethinkingObjects#readme
🙏 1
👍 1
Just a heads up, there is also this ticket: https://github.com/pantsbuild/pants/issues/16534
Per that slack thread (which will get lost in 90 days): this is because WSL2 mounts the Windows drives as network filesystems (using 9p of all things), and those don't work with advanced filesystem operations that Pants relies on, such as notification and locking.
So a workaround is to work with a repo that is not under a network drive from WSL2's perspective. E.g., your homedir.
Interesting re WSL2 & Windows 10. I'm on Windows 11 and had no issues using the non-Windows store WSL. It looks like your experience was a bit painful.
Ouch, sorry this was laborious. There is work under way to distribute Pants as a binary with an embedded python interpreter, which will get rid of at least the issues around installing an interpreter for it to run on.
Yes, I repeated it a number of times starting from deleting WSL to make sure it goes smoothly for novices.
This is super-valuable for new users! I’m afraid most of us don’t have much Windows experience. I did get Pants running on Windows 10/WSL2, and it wasn’t particularly painful, but it sounds like that was more by luck than good design
@enough-analyst-54434 is working on PEX support for Windows, which is the core hard bit of getting Pants itself to work natively on Windows, so we hope to have that working some time soon-ish-y