Skip to content

Commit

Permalink
[SCSB-155] build with Numpy 2.0 release candidate (#260)
Browse files Browse the repository at this point in the history
* pin `numpy>=2.0.0rc2` in `build-system.requires`

* rename NPY_NTYPES for numpy 2.0

* add change log entry

---------

Co-authored-by: Brett <brettgraham@gmail.com>
  • Loading branch information
zacharyburnett and braingram authored Jun 3, 2024
1 parent 6739c1c commit f90880d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
1.7.2 (unreleased)
==================

General
-------

- build with Numpy 2.0 release candidate [#260]

Changes to API
--------------

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ requires = [
"setuptools >=61",
"setuptools_scm[toml] >=3.4",
"Cython >=0.29.21",
"numpy >=1.18",
"numpy >=2.0.0rc2",
]
build-backend = "setuptools.build_meta"

Expand Down
2 changes: 1 addition & 1 deletion src/stcal/ramp_fitting/src/slope_fitter.c
Original file line number Diff line number Diff line change
Expand Up @@ -3486,7 +3486,7 @@ print_npy_types() {
printf("NPY_DOUBLE = %d\n",NPY_DOUBLE);

printf("NPY_VOID = %d\n",NPY_VOID);
printf("NPY_NTYPES = %d\n",NPY_NTYPES);
printf("NPY_NTYPES_LEGACY = %d\n",NPY_NTYPES_LEGACY);
printf("NPY_NOTYPE = %d\n",NPY_NOTYPE);
/*
NPY_SHORT
Expand Down

0 comments on commit f90880d

Please sign in to comment.