-
Notifications
You must be signed in to change notification settings - Fork 158
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
Build with Numpy 2.0 #231
base: develop
Are you sure you want to change the base?
Build with Numpy 2.0 #231
Conversation
CI available at https://github.com/jaimergp/zfp/actions/runs/9568406928/job/26378542726. It passes but I do see some warnings about deprecated APIs:
|
Those warnings are harmless, you can safely ignore them. Would be nice to fix them eventually of course, but they've been there for many years and are unrelated to numpy 2.0 |
Seems these builds are still using Python 3.8, in that case you can't force NumPy>=2 (not available). OTOH, if there is nothing else limiting the version, you'll get Numpy 2 anyway during the build. Now, in principle if you still build for 3.8 you should still use |
@@ -1,2 +1,2 @@ | |||
cython>=0.22 | |||
numpy>=1.8.0 | |||
numpy>=2.0 |
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.
is this a runtime requirements file or a build time requirements file?
|
||
- COMPILER: msvc | ||
GENERATOR: Visual Studio 14 2015 | ||
PLATFORM: Win32 | ||
BUILD_TYPE: Release | ||
PYTHON_VERSION: 38 | ||
PYTHON_VERSION: 39 | ||
|
||
- COMPILER: mingw | ||
GENERATOR: MinGW Makefiles |
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.
Think these MinGW builds also need Python version set to 3.9. Appears they use Python 2.7 otherwise
Think we also need someone to approve GHA so that it can run @lindstro would you be able to help with that? 🙂 |
The workflow triggers are not configured for pull requests. So you have to go to my branch and see the Actions tab there (push event triggers are active). |
I trust that you got it to work 🙂 Am now trying to figure out how we can work with the maintainers here to integrate it (though the suggested AppVeyor change above still seems advisable) |
@jakirkham I'm happy to help out, but I must admit to being a Python novice at best. It seems reasonable to bump Python from 3.8 to 3.9, but are there no concerns about requiring NumPy 2.0? There's also this lingering issue with |
Right now we are just focused on getting CI running. Think there is a button a repo owner can click |
@jakirkham Thanks for the pointer. However, the "approve and run" button in question does not appear visible to me. I'm no t sure if that's some kind of repo configuration issue. I also don't know why we're not running workflows on pull requests. Let me look into this. I think for now you'll have to consult @jaimergp's fork (see link to CI above). |
I can add the PR support here, I think. Then you'll see the button John mentions. |
@jaimergp I should have mentioned that I already added workflows on PRs on I do see the "Approve and run" button now and tests are running... |
Just looking at AppVeyor, it kinda looks like the failing runs are using python2.7 (EOL Jan. 1, 2020) and an old pip and so are not finding numpy 2.0 wheels. If its reconfigured to use Python3 and a newer pip is used, it'll probably work. |
I was trying to have the workflows triggered for every push to
It'll cancel ongoing runs for a given PR (a new push to the PR will cancel the previous runs triggered by previous pushes if they are still running). On |
Also I'd like to see if you are interested in using Appveyor, given that we can simply configure Github Actions to run on Windows too. Thoughts? |
I'm not sure I understand. Clearly workflows are not triggered currently on PRs, which adding
Gotcha. |
I'd be the first to drop AppVeyor in favor of something better. I just don't have the cycles at the moment to investigate how to transition to GitHub Actions (which compilers and versions of CMake and Python to use, how/whether to deal with Fortran, how to interface with CDash, ...). Keep in mind that we're currently testing both MSVC and MinGW through AppVeyor. If someone else has time to help out with this, I'd be very grateful. |
I reverted the branch filter so you can see what happens when you run the workflows. You will see duplicated (redundant) entries for |
I don't know why it can't find the Python.h headers. They are there in |
See #227 or I believe I had a patch: |
Investigating #210