Skip to content

Commit 14347f1

Browse files
author
Frederik Rietdijk
committed
scipy.stats._boost: include boost as dependency
Declare boost as a dependency, instead of referring to its include directories. This is more portable.
1 parent 824d5cf commit 14347f1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

scipy/stats/_boost/meson.build

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if meson.get_compiler('cpp', native: true).sizeof('void*') > 4
66
endif
77

88
include = include_directories('include')
9-
inc_boost = include_directories('..' / '..' / '_lib' / 'boost')
9+
boost_dep = dependency('boost')
1010

1111
# hypergeom_ufunc
1212
_hypergeom_cy = custom_target('_hypergeom_cy',
@@ -16,9 +16,9 @@ _hypergeom_cy = custom_target('_hypergeom_cy',
1616
)
1717
hypergeom_ufunc = py3.extension_module('hypergeom_ufunc',
1818
_hypergeom_cy,
19-
include_directories: [include, inc_np, inc_boost],
19+
include_directories: [include, inc_np],
2020
cpp_args: cpp_args,
21-
dependencies: [py3_dep]
21+
dependencies: [py3_dep, boost_dep]
2222
)
2323

2424
# nbinom_ufunc
@@ -29,9 +29,9 @@ _nbinom_cy = custom_target('_nbinom_cy',
2929
)
3030
nbinom_ufunc = py3.extension_module('nbinom_ufunc',
3131
_nbinom_cy,
32-
include_directories: [include, inc_np, inc_boost],
32+
include_directories: [include, inc_np],
3333
cpp_args: cpp_args,
34-
dependencies: [py3_dep]
34+
dependencies: [py3_dep, boost_dep]
3535
)
3636

3737
# beta_ufunc
@@ -42,9 +42,9 @@ _beta_cy = custom_target('_beta_cy',
4242
)
4343
beta_ufunc = py3.extension_module('beta_ufunc',
4444
_beta_cy,
45-
include_directories: [include, inc_np, inc_boost],
45+
include_directories: [include, inc_np],
4646
cpp_args: cpp_args,
47-
dependencies: [py3_dep]
47+
dependencies: [py3_dep, boost_dep]
4848
)
4949

5050
# binom_ufunc
@@ -55,9 +55,9 @@ _binom_cy = custom_target('_binom_cy',
5555
)
5656
binom_ufunc = py3.extension_module('binom_ufunc',
5757
_binom_cy,
58-
include_directories: [include, inc_np, inc_boost],
58+
include_directories: [include, inc_np],
5959
cpp_args: cpp_args,
60-
dependencies: [py3_dep]
60+
dependencies: [py3_dep, boost_dep]
6161
)
6262

6363
py3.install_sources(['__init__.py'],

0 commit comments

Comments
 (0)