Skip to content

Commit

Permalink
updated way of doing it
Browse files Browse the repository at this point in the history
  • Loading branch information
nonhermitian committed Sep 30, 2024
1 parent 7455ba4 commit be38dd8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
COMPILER_FLAGS = ['/O3']
# Everything else
else:
COMPILER_FLAGS = ['-O3', '-std=c++17']
COMPILER_FLAGS = ['-O3', '-std=c++17', '-DNPY_NO_DEPRECATED_API=NPY_1_23_API_VERSION']

EXT_MODULES = []
# Add Cython Extensions
Expand All @@ -86,9 +86,7 @@
include_dirs=INCLUDE_DIRS,
extra_compile_args=COMPILER_FLAGS+OPTIONAL_FLAGS,
extra_link_args=LINK_FLAGS+OPTIONAL_ARGS,
language='c++',
define_macros=[("NPY_NO_DEPRECATED_API",
"NPY_1_7_API_VERSION")])
language='c++')
EXT_MODULES.append(mod)


Expand Down

0 comments on commit be38dd8

Please sign in to comment.