Skip to content

Commit 554def0

Browse files
committed
[build] add numpy api
1 parent 112b292 commit 554def0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def build_extension(self, ext):
7878
"PYBJDATA_NO_EXTENSION" not in os.environ and python_implementation() != "PyPy"
7979
)
8080

81-
COMPILE_ARGS = ["-std=c99", "-DUSE__BJDATA"]
81+
COMPILE_ARGS = ["-std=c99", "-DUSE__BJDATA", "-DNPY_NO_DEPRECATED_API", "-DNPY_1_7_API_VERSION"]
8282
# For testing/debug only - some of these are GCC-specific
8383
# COMPILE_ARGS += ['-Wall', '-Wextra', '-Wundef', '-Wshadow', '-Wcast-align', '-Wcast-qual', '-Wstrict-prototypes',
8484
# '-pedantic']

0 commit comments

Comments
 (0)