csp icon indicating copy to clipboard operation
csp copied to clipboard

NumPy 2.0 build support

Open timkpaine opened this issue 1 year ago • 1 comments

Adds support for building against numpy 2.

Note: a csp built against numpy 2 will ALSO be useable with a locally installed numpy < 2. The reverse (build against numpy 1, use with numpy 2) does not work.

ref https://github.com/Point72/csp/issues/58

timkpaine avatar Jul 13 '24 17:07 timkpaine

From the build test_buildtime_dependencies:

-- Found Numpy: /opt/python/cp39-cp39/lib/python3.9/site-packages/numpy/_core/include (found version "2.0.0")

...

Run python -m pip install -U "numpy>=2" "pandas>=2.2" "pyarrow>=16.1"
Requirement already satisfied: numpy>=2 in /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages (2.0.0)
Requirement already satisfied: pandas>=2.2 in /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages (2.2.2)
Requirement already satisfied: pyarrow>=16.1 in /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages (16.1.0)

...

====== 934 passed, 84 skipped, 3 xfailed, 52 warnings in 64.73s (0:01:04) ======

timkpaine avatar Jul 13 '24 20:07 timkpaine