-
Notifications
You must be signed in to change notification settings - Fork 598
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
Add numpy2 support #2449
Open
2maz
wants to merge
48
commits into
vaexio:master
Choose a base branch
from
2maz:numpy-v2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add numpy2 support #2449
Changes from 46 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
b55762f
Drop python 3.9, add python 3.13, allow numpy 2.x
ddelange 8bf1d79
Fix extension for NUMPY>=2
2maz f223a92
vaex-core: update vaexfast for numpy 2
2maz 8dcd57d
vaex-core: change from tab to spaces for vaexfast.cpp
2maz 5d32e75
vaex-core: revert changes
2maz 563e64e
numpy2: np.product -> np.prod
2maz a52ffd8
numpy2: np.find_common_type -> np.result_type
2maz 72d0813
numpy2: deprecate np.bool8
2maz fc2e5e1
numpy2: np.float -> float
2maz c1ca041
vaex-core: test/cmodule.py update
2maz 99d2ed5
vaex-core: use raw string literal for pattern definition
2maz 737da36
vaex-core: extension: silence some warnings (ordering)
2maz c9e5014
vaex-core: vaexfast: adapt to PyArrayObject usage
2maz 086b2d4
vaex-core: remove deprecation warning on visit_X -> visit_Constant
2maz 89ad3a2
vaex-core: fix missing newline
2maz a703b81
Set pybind11==2.13.2 (minimum required for numpy2 is 2.12.0
2maz d2ed8be
vaex_core: extension: fix warnings
2maz ebbe889
vaex-core: fix numpy2 compatibility of test_ascii
2maz 9cdc91e
vaex-core: fixup superutils
2maz 9bc5a7f
vaex-core: fix missing header
2maz 9c37ff7
ci: install libpcre3-dev
2maz 12c4b39
vaex-core: sort dependencies
2maz 4021b11
vaex-core: add dependency 'future'
2maz 19976d0
vaex-astro: set a compatible astropy version for numpy2
2maz 886760a
vaex-core: TaskPartAggregation.reduce - warn until clarified what is …
2maz 32f63b2
vaex-core: deprecate cumproduct -> cumprod
2maz 1535d02
tests: conditionally skip tests that depend upon catboost
2maz 0c93e21
vaex: starting with numpy v2 can_cast does not support scalars anymore
2maz 80c367e
vaex-ml: tensorflow - numpy 2 dynamically decide on array copy
2maz fb01f2b
vaex-core: temporarily fix overflow error when assigning int64_t maxv…
2maz 211f420
vaex-core: arrow: fix overflow error -- test_groupy_int8_with_null
2maz 080bffc
test: geo_test: set legacy print options
2maz 0da0bcb
test: ml_test - fix decimal
2maz 80f57fe
ci: fix step name
2maz f6530e2
vaex-astro: fix np.bool setting
2maz da02384
test: use raw string literal for regular expression
2maz da5fe8a
vaex-core: remove need for legacy printoptions
2maz 9b173da
vaex-core: use raw string literal for pattern
2maz 3787f3f
vaex-core: account for numpy2 print changes in doctest
2maz e6f5006
vaex-ml: conditionally disable catboost dependent functionality
2maz f30d24f
Require tensorflow >= 2.18 - with numpy2 support
2maz 6f3bc5d
vaex-core: trying to narrow down non-deterministic behaviour in grid_…
2maz 65dc195
vaex-core: update handling of zero-divison in calculate_x
2maz ed36504
vaex-core: update grid_find_edges
2maz d53eff7
vaex-core: removing python3.13 classifier - blocked by vaex-ml->tenso…
2maz 2b6d1b2
tests: check if platform-specific skips can be removed
2maz b99ffc2
test: add comment on skipping catboost tests
2maz 69d26aa
pcre: install precompiled where possible
2maz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
we have
bin/install_pcre.sh
already just above:vaex/.github/workflows/pythonpackage.yml
Lines 52 to 54 in 4c710c1
is it broken?
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.
see https://github.com/vaexio/vaex/actions/runs/12819691425/job/35747856845
E ImportError: libpcrecpp.so.0: cannot open shared object file: No such file or directory
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.
I see. The wheels depend on that script:
vaex/.github/workflows/wheel.yml
Line 101 in 4c710c1
So maybe the wheels are broken and this smoke test doesn't catch it?
vaex/.github/workflows/wheel.yml
Line 107 in 4c710c1
What do you think about adding the apt-get to the install script? Maybe similar to this one, preferring the precompiled one over the source install? https://github.com/ahupp/python-magic/blob/65fb61c9c9aa6348bb95d1dd71b685720c2a8a23/add_libmagic.sh#L69
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.
I added it to the script.
The source-built libraries are in /usr/local/lib. So LD_LIBRARY_PATH or runtime search path for the extension could be set otherwise.