-
Notifications
You must be signed in to change notification settings - Fork 102
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
[easy_train] Potential issue with msys2 and PATH #186
Comments
I just installed msys2 in a sandbox with the latest official installer, the path is not updated automatically and there is not an option. |
we can probably infer the path from |
The standard module There are other mingw-w64 recent distributions like https://jmeubank.github.io/tdm-gcc/articles/2021-05/10.3.0-release but IMO better to have msys2 as requirement. |
According to https://superuser.com/a/480115/388191 |
In this case |
Does |
Check
Another option: we use a @echo off
set PATH=C:\tools\msys64\mingw64\bin;C:\tools\msys64\usr\bin;%PATH%
env\bin\python3.exe -i worker.py |
Alternatively we may have to fall back to have the user provide msys2 directory as an argument, with an attempt to infer it otherwise. |
What do we set the path to though |
Standard installation paths used by chocolatey, see the scripts |
Ah, so you basically want the script to install msys? My msys2 directory is close to 4GB, I don't think it's wise to force a setup. |
Yes, the windows worker setup is meant for the CPU contributor not able to follow the installation tutorial on the wiki. Chocolatey has the plus to auto update msys2 after the installation and the minus to use a not standard installation path.
|
Okay. I think you have a point and it would be a good idea to fallback to automatic msys installation if not provided by the user. I'll try to prepare something around tomorrow. |
...msys2\mingw64\bin
needs to be in PATH, but that might not be setup by default, in which case we need to modify the environment programaticallyThe text was updated successfully, but these errors were encountered: