Repository navigation
Clarify msys/python requirements on Windows. - #10665
zbynekwinkler wants to merge 1 commit into
Conversation
Attempting to address #9168.
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @larsbergstrom (or someone else) soon. |
|
I'm going to try this out locally in the next day or two, but the last few times I've tried to run Servo with the msys python, we've had horrible errors due to various scripts expecting the mingw python instead of the msys one. |
|
Testing now in a VM |
|
To prevent a misunderstanding - I was not proposing to use the msys python but the native windows python. The edits I proposed go to that end. The msys python does not even need to be installed and if the mingw python was not a dependency of gdb, it could go away as well. I figured the native windows python is going to be fully supported and the msys and mingw pythons are just too confusing. |
|
@zwn i'm just following your readme (the windows bit) |
|
@larsbergstrom @zwn Here was the output when running ./mach build Secondly here's some readme notes which i made along the way so they can be improved:
|
|
@Jayflux Thanks for testing. Could you please take a look what is the value of |
|
|
@Jayflux So that is right. Could you please delete the C:/msys64/home/IEUser/servo/python/_virtualenv/ directory and try one more time? The directory will be recreated in a clean state on the next run of mach build. |
|
@zwn same.. |
|
This seems like a python installation problem. functools is in the standard library. There are, as I recall, three versions of Python involved on windows, and I don't recall which one should be the one involved here. It looks like you are calling virtualenv with the standard Python. @larsbergstrom is that correct? I'll have a Windows machine for testing in a day or so, and I'll be sure to run through these instructions very carefully. I'm guessing it will just take a few people running into problems before we get them reliable. |
|
@metajack We've had troubles getting the native Windows python to work with mach & the various tools. Vlad and I sunk a lot of time into poking at it and asked folks on the Gecko side for tips, but were never able to get it working, due to differences in expectations about paths e.g., inside of the virtualenv structure. Maybe we could make it work in conjunction with the other python patch that removes usage of virtualenv in mach? But then I'm worried we'll end up on some other fragile path. It's really not a good situation, and I don't have a great answer. |
|
@larsbergstrom there's a patch to remove virtualenv? |
|
@metajack Did you run through these instructions to see if they're correct w.r.t. your new setup? |
|
I believe the docs are in pretty good shape. The only thing I can remember that I did that isn't listed is setting my system environment variables in Windows to add I suspect these alternate instructions are correct, and achieve the same thing as removing/renaming the python binaries. It would be nice to hoist the PATH modification up into Windows though, since we'll need that for native MSVC builds. |
|
@metajack Specifically, we don't need to do |
|
I'd have to do a clean install to verify that. I can't remember if the default Python27 dir included Scripts/virtualenv.exe and Scripts/pip.exe. Those appear to have been added to standard python distros sometime late in the 2.7 series. If so, that may explain why we had different results if we did it at different enough times to straddle that change. |
|
I have researched and documented an effective way to have windows environments set up for 32 and 64 bits in Windows 7. I assume this will work in all windowses. |
|
☔ The latest upstream changes (presumably #12578) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Once we land MSVC support (#11756), I suspect that we are going to remove the complicated msys/mingw build path, as all it gets us is slightly better Rust variable name dumping in gdb, at the cost of very complicated build and test configurations. So, I am going to close this in favor of trying to move away from msys/mingw. |
Attempting to address #9168.
cc @larsbergstrom
This change is