blob: 0220e8d56b8fd8d7aac44940284f9394f5b94cd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# We create symlinks to the native extensions in the source tree for the tests
# and for development. Meson does not allow you to build in-place and Python
# cannot create a single namespace from two identically-named paths.
whirlpool_ext = py.extension_module(
'_whirlpool',
'portage_util__whirlpool.c',
dependencies : py.dependency(),
subdir : 'portage' / 'util',
install : true
)
run_command(
[
'ln', '-srnf',
whirlpool_ext.full_path(),
meson.project_source_root() / 'lib' / 'portage' / 'util/'
],
capture : false,
check : true
)
|