-
Notifications
You must be signed in to change notification settings - Fork 165
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
ENH: Update CI and scikit-build-core #628
Conversation
It looks like we need to set the MACOSX_DEPLOYMENT_TARGET to the runner version, because brew is used to get libpng, and brew always targets the current OS. |
Success - I think Python 3.12 might still fail but most versions should work now |
Ok the python3.12 error looks to be due to itkPyBuffer.h which I manually copied from itk a long time ago... it could be outdated so I will try to update it or just include the file header from the actual itk build. I think I couldn't find the flag to have the itk numpy bridge code be included in the build a long time ago. edit: I believe this is an issue with itk as they dont yet have wheels for 3.12. See InsightSoftwareConsortium/ITK#4590 |
Awesome that would be great to fix. |
The Mac wheels build but won't install on my machine. This is because the tag is wrong, it comes out as |
The suggested fix of |
Actually
works for me, it doesn't help to build the right tags, but it tells my local pip to let me install. A workaround at least. |
So I guess this is a known problem, and Intel Macs running Mac OS 12 won't install packages built for target mac os 12 |
How do you download the wheels? I'd also like to try that. e.g.
|
Ok, I think I fixed the python3.12 issue, or at least got it to build locally on my mac. I replaced any instances of Ideally, we could have an if statement in those files checking the python version and then only redefine PySequence_FAST_GET_ITEM to PySequence_GetItem if the python version is 3.12 or above. Unfortunately, the idea of including the ITKBridgeNumPy module in the ITK build did not work because they use an even more outdated version that SWIG - their (bad) wrapper - requires or something. EDIT: now all the 3.12 wheels build but all the < 3.11 builds for windows fail... so I am trying to conditionally redefine that function with the stable api version. |
Sorry I think the final solution is here: https://github.com/ANTsX/ANTsPy/pull/632/files#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20a Basically, remove the Here is the build https://github.com/ANTsX/ANTsPy/actions/runs/9094885938 |
Great, thanks. I think 3.8 is a lost cause, I have seen many issues on other repos. |
Ok! If you can just make that small change to your PR then I think it's good to merge. And I think it's good to remove these lines from the pyproject.toml, as I believe it could be messing up the tags:
|
Can't build successfully, despite multiple efforts
I see the 3.8 windows build failed with this same weird error I was getting earlier:
Could that be related to the different Line 52 in 9266f2f
|
I didn't know the API trick, very useful. On the web, once the action finishes all jobs, artifacts appear at the bottom of the page for download. |
I don't understand how ANTsPy/src/antsImageWin.cxx, formally |
Also, if the pointer string is wrong somehow, shouldn't all Windows builds fail consistently? |
Yeah good point. It is probably not necessary. I think getting 3.9 - 3.12 to build consistently is very good. Feel free to merge whenever. |
No description provided.