Skip to content

Commit

Permalink
Try include_directories()
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Sep 16, 2024
1 parent 1778e15 commit 5cd58ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ py = import('python').find_installation(pure: false)
npy_include_path = run_command(py, ['-c', 'import os; import numpy; print(os.path.abspath(numpy.get_include()))'],
).stdout().strip()

npy_include = include_directories(npy_include_path)

py.extension_module(
'fast_histogram._histogram_core',
'fast_histogram/_histogram_core.c',
limited_api: '3.9',
include_directories: [npy_include_path],
include_directories: [npy_include],
install: true,
)

0 comments on commit 5cd58ad

Please sign in to comment.