-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Python] NumPy 2 ABI changes (elsize) #40376
Comments
PyArrow is not a build dependency, only a run dependency for pandas, so in case numpy breaks something in pyarrow, that wouldn't directly break pandas (only that functionality in pandas that requires pyarrow). Or am I misunderstanding your question? |
Aha, so I guess we should get pandas wheels (as I suppose we have them and even if tests fail against 2.0, the new wheels tests will work when run against NumPy 1.x). But some things using arrow will be broken until we also have It is unclear how much of an effect that may be, but if you are not super worried I guess we'll have to see (if you are super worried, we can just stick to keeping |
We do have nightly wheels building with numpy 2.0, so once your PR lands on the numpy side and we can do those fixes here, we can rather quickly have pyarrow nightly wheels that should work. |
…escr->elsize Co-authored-by: Sebastian Berg <[email protected]>
…elsize (#40418) ### Rationale for this change NumPy 2.0 is changing some ABI, see the issue description and numpy/numpy#25946 for more details. The changes here should make our code compatible both with current numpy 1.x and future numpy 2.x * GitHub Issue: #40376 Lead-authored-by: Joris Van den Bossche <[email protected]> Co-authored-by: Sebastian Berg <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
Issue resolved by pull request 40418 |
Parent issue:
Describe the enhancement requested
As soon as we merge gh- in NumPy, it would be nice to have a small fix in here. I suspect the following changes should do things (the first two are obvious, the last is the annoying one).
The tricky remaining thing is that
itemsize_
would be nice to be anintp
/(Py_)ssize_t
orint64
now and I am not sure if that has knock-on effects@jorisvandenbossche do you know this would affect pandas? I am now worried that pandas wheels will fail due to importing arrow. OTOH, it seems like you must have solved that issue (or it is a non-issue).
Component(s)
C++, Python
The text was updated successfully, but these errors were encountered: