Skip to content

Commit

Permalink
Don't set define_macros as it seems the generated Cython code relies …
Browse files Browse the repository at this point in the history
…on deprecated Numpy API
  • Loading branch information
astrofrog committed Oct 4, 2024
1 parent 1d7ae54 commit e941d53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyregion/setup_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def get_extensions():
_region_filter = Extension(
name="pyregion._region_filter",
define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")],
# define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")],
sources=[str(ROOT / "_region_filter.pyx")],
include_dirs=[get_numpy_include()],
)
Expand Down

0 comments on commit e941d53

Please sign in to comment.