-
Notifications
You must be signed in to change notification settings - Fork 4
scipy: test windows (and macOS) support #23
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
Conversation
c990537 to
7587bfe
Compare
scipy\meson.build:276:9: ERROR: Dependency "blas" not found, tried pkgconfig |
|
Ah this will require more changes I think. I had Windows working with Flang a while back, but I only occasionally open my Windows dev setup. |
7587bfe to
c4c8020
Compare
|
progress update:
|
|
Yes, we do need Windows is a bit time-consuming to get to work. I did pretty much have it working a while back. The |
|
Yes, the error seemed not fundamental, it will be possible to replicate the conda-forge setup somehow. I am without a Windows box until July now, so this may have to wait a while longer. |
|
Left to-do here:
I think only the last item is blocking for this PR, the rest could be left for a follow-up. @rgommers this is ready for review. |
Agreed. I can look into the |
|
Since we are using the
This PR does (1) by using a (2) could maybe be handled by |
This looks fine: I can't see anything wrong yet, guess I need to open a Windows machine to be helpful.
(2) is the way to do it, (1) is a hacky workaround. This should be done automatically normally; IIRC it's the |
I discussed this for a bit with Axel here. It may be related to the fact that only the |
Yeah I know, that's normal. That shouldn't cause any failures; if you look for |
Hmm, I don't understand. Isn't https://github.com/scipy/scipy/blob/main/scipy/meson.build#L284-L290 exactly what we hit when we pass To clarify, this is about building against openblas (not netlib) when we have an openblas variant of blas in the env, by passing |
|
Oh right, sorry I can't read - we need the On Linux this works: On Windows it doesn't. This is a weird asymmetry, you can see it in the conda-metadata browser:
There's something off on Linux as well though: So we're still linking against For Windows support let's go with |
|
thanks for clearing that up! I was rather puzzled at the whole blas-switching situation, but I think it makes sense now. I thought that building against
So, in effect, we may as well be passing |
Yes, that's fine in this PR. |
|
@lucascolley does the whole test suite pass for you locally? The CI job only runs |
|
😅 that sounds bad... I can try it out later today. What kind of crash? Possibly related to building against |
|
Don't know yet - the terminal disappeared completely, so now trying module by module to figure out where it is unhappy. |
|
no terminal crash for me on However, the final test summary did not print, instead pytest crashed with this after reaching 100%: Traceback (most recent call last):
File "E:\dev\pixi-dev-scipystack\scipy\.pixi\envs\default\Lib\pathlib.py", line 1311, in mkdir
os.mkdir(self, mode)
FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'E:\\dev\\pixi-dev-scipystack\\scipy\\scipy\\.pytest_cache\\v\\cache' |
|
After scipy/scipy#23313 the build log looks pretty decent. I can't quite track down the crashes, but they may have to do with: That comes from the conda-forge activation script: not sure what's wrong with it. |
|
Okay, I identified at least one problematic test that is hanging or crashing: |
|
Just started testing PyTorch, the build seems broken: |
|
Right, this is the same story as |
rgommers
left a comment
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.
Thanks Lucas, did a bunch more testing on Windows and macOS, and it looks pretty happy - let's get this in.
Yep, it was |
closes gh-17
Left to-do here:
openblas.dllhack for Windows #42nogilandeditablebuilds on Windows #43jax-cpubeing in thearray-apienv, yet not supporting WindowsI think only the last item is blocking for this PR, the rest could be left for a follow-up.