-
Notifications
You must be signed in to change notification settings - Fork 21
Use 141 toolchain for Windows build #146
Conversation
Test it where? It is running here. |
Linking is failing
|
Sorry - I meant - it is hard to test the code before doing a PR. |
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
a19b866
Compare
For a bunch of cruddy test commits it helps to comment out all the other tests, especially travis. |
@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
0881a70
Compare
OK - I think I worked it out - was missing |
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. |
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 |
What's the right thing to do? We could unset |
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. |
Yeah, that works. It also tests that numpy built with v141 toolchain can successfully link with v142 toolchain. |
Simple-minded unset didn't seem to work : 5481094 |
@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
893ac0f
Compare
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
45c98ae
Compare
Most 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 |
If it makes life easier (/possible), patching |
OK - I think this one is ready to go. Windows tests passing, macOS failures unrelated. |
Thanks Matthew. |
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. |
Oh - and thanks @isuruf, as ever, for your invaluable help. |
@@ -0,0 +1,71 @@ | |||
@@echo on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add something like
REM Taken from conda-forge recipes licensed as follows
REM BSD-3-Clause
REM Copyright conda-forge contributors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point - see: #150
We should first make a |
As suggested by @isuruf in MacPython#146 (comment)
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
As suggested by @isuruf in MacPython#146 (comment)
* 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 <[email protected]>
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?