Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,17 @@
# MSVC does not understand -std=c11 and only warns about it.
extra_compile_args = [] if sys.platform == "win32" else ["-std=c11"]

# Pin the numpy C API level, so that a future numpy removing an already
# deprecated API is a compile error here rather than a surprise at runtime.
define_macros = [("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")]

extensions = [
Extension(
"extinction._extinction",
source_files,
include_dirs=include_dirs,
depends=depends_files,
define_macros=define_macros,
extra_compile_args=extra_compile_args,
)
]
Expand Down