Skip to content

Commit

Permalink
Merge pull request #235 from ketch/np_flag
Browse files Browse the repository at this point in the history
Pass numpy api flag in meson build.
  • Loading branch information
mandli committed Nov 2, 2023
2 parents f67d783 + 3fdb9dd commit 1b384e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ clawpack/version.py

# ignore build directory
build
build-install

# ignore silly .pyc, log, and egg files
*.pyc
Expand Down
13 changes: 8 additions & 5 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ f2py = [
]

fc = meson.get_compiler('fortran')
cc = meson.get_compiler('c')

add_project_arguments(
fc.get_supported_arguments(
Expand All @@ -45,11 +46,13 @@ add_project_arguments(
),
language : 'fortran',
)

#add_project_arguments(
# '-DNPY_NO_DEPRECATED_API=NPY_API_VERSION',
# language : 'c',
#)
add_project_arguments(
'-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION',
cc.get_supported_arguments(
'-Wno-unused-but-set-variable',
),
language : 'c',
)

subpackages = {
'clawutil': 'clawutil/src/python',
Expand Down

0 comments on commit 1b384e5

Please sign in to comment.