Uh oh!
There was an error while loading. Please reload this page.
Use 141 toolchain for Windows build - #146
Conversation
charris
commented
Jan 24, 2022
Test it where? It is running here. |
charris
commented
Jan 24, 2022
Linking is failing |
matthew-brett
commented
Jan 24, 2022
Sorry - I meant - it is hard to test the code before doing a PR. |
matthew-brett
commented
Jan 24, 2022
It looks like the compilation step is failing to find the MS compilers... I'm afraid this is going to mean a whole slew of cruddy debug commits :( |
cda6344 to
a19b866Comparecharris
commented
Jan 24, 2022
For a bunch of cruddy test commits it helps to comment out all the other tests, especially travis. |
matthew-brett
commented
Jan 25, 2022
@isuruf - any ideas what might be going on here? The error is the one Chuck posted above, repeated here: The configuration batch output is here - it appears to be finding the 141 toolset and SDK correctly. I've tried on I can't replicate it locally. I've forced the same SDK and am using the same toolset locally - and I've run out of things I can think of to try, as of about 1am in the morning. Any ideas what I could try next? |
latest image seems like a hostage to fortune.
5639708 to
0881a70Comparematthew-brett
commented
Jan 25, 2022
OK - I think I worked it out - was missing |
charris
commented
Jan 25, 2022
The OSX failures started 10 days or so ago. I suspect azure is reponsible somehow, an upgrade from 10.9 to 10.14 may be responsible for the error message, I don't really understand that bit. The windows failures (and errors) are new and look like mostly f2py and may be mingw related. |
isuruf
commented
Jan 25, 2022
Windows failures are because the testing script is run with MinGW bash which adds it's compilers to the front of PATH and unfortunately there's a |
matthew-brett
commented
Jan 25, 2022
What's the right thing to do? We could unset |
charris
commented
Jan 25, 2022
The OSX failures occur after an azure update to the Python tools version from 0.193 to 0.197, apparently the OSX version changed in the process. See "set python version" tab. |
isuruf
commented
Jan 25, 2022
Yeah, that works. It also tests that numpy built with v141 toolchain can successfully link with v142 toolchain. |
matthew-brett
commented
Jan 25, 2022
Simple-minded unset didn't seem to work : 5481094 |
matthew-brett
commented
Jan 26, 2022
@isuruf - thanks - it seems that Bash is not picking up the unset, although it has clearly picked up the earlier variable set (any explanations welcome). I've tried using the ugly Pipeline syntax to change the environment variables. |
7a872ce to
893ac0fComparecharris
commented
Jan 26, 2022
I trying to figure out how to give you permissions. If you want to run on your own account, it may be something you can do for yourself. |
893ac0f to
45c98aeCompareMost unfortunately, Distutils does this check for the relevant variables: https://github.com/pypa/setuptools/blob/main/setuptools/_distutils/msvccompiler.py#L250 This means that it doesn't matter what values these variables have, including empty strings or 0, it will still trigger effects in Distutils. So, I have |
rgommers
commented
Jan 26, 2022
If it makes life easier (/possible), patching |
matthew-brett
commented
Jan 26, 2022
OK - I think this one is ready to go. Windows tests passing, macOS failures unrelated. |
charris
commented
Jan 26, 2022
Thanks Matthew. |
matthew-brett
commented
Jan 26, 2022
Thanks Chuck. Now - would y'all consider tiny little PRs to build 141 wheels with a build tag for 1.22.0 and 1.22.1 ? That way, Scipy can assume that the builds are 141 compatible, at least for now. |
matthew-brett
commented
Jan 26, 2022
Oh - and thanks @isuruf, as ever, for your invaluable help. |
| @@ -0,0 +1,71 @@ | |||
| @@echo on | |||
There was a problem hiding this comment.
Can you add something like
REM Taken from conda-forge recipes licensed as follows
REM BSD-3-Clause
REM Copyright conda-forge contributors
rgommers
commented
Jan 26, 2022
We should first make a |
As suggested by @isuruf in MacPython#146 (comment)
mattip
commented
Jan 26, 2022
Maybe we should port this to the numpy/numpy repo and use it in CI
Other projects may want to use this too |
As suggested by @isuruf in #146 (comment)
* Use defined image windows-2019 latest image seems like a hostage to fortune. * Add, use script to set VS toolchain version * Unset Distutils SDK stuff before tests
* Update Mac version from 10.9 to 10.14. This is needed because of changes in the azure provided Python 3.8 for Mac. * Use 141 toolchain for Windows build (#146) * Use defined image windows-2019 latest image seems like a hostage to fortune. * Add, use script to set VS toolchain version * Unset Distutils SDK stuff before tests * Add conda-forge license note (#150) As suggested by @isuruf in #146 (comment) Co-authored-by: Matthew Brett <matthew.brett@gmail.com>
See discussion at #145
I'm afraid I can't test this because I don't have Azure Pipeline permissions
for my own account.
Do I need some permissions from y'all?