master
build 27 lines 959 Bytes
Raw
1 # Note that this file only controls "optional" dependency groups; groups
2 # unconditionally installed at configure time are handled in configure
3 # instead; namely: meson, sphinx, and the tooling groups.
4
5 # Note that this command may or may not include the "--online" flag
6 # based on configuration.
7 ensuregroup_cmd = config_host['MKVENV_ENSUREGROUP'].split()
8
9 pyvenv_common_deps = files(
10 meson.project_source_root() + '/pythondeps.toml',
11 meson.project_source_root() + '/python/scripts/mkvenv.py'
12 )
13 pyvenv_wheel_dir = meson.project_source_root() + '/python/wheels'
14
15 # This group is allowed to (and must) rely on internet to fetch from
16 # PyPI. Force the use of the --online flag here.
17 pyvenv_functests_group = custom_target(
18 'pyvenv_functests_group',
19 output: 'functests.group',
20 input: pyvenv_common_deps,
21 command: ensuregroup_cmd + [
22 '--online',
23 '--dir', pyvenv_wheel_dir,
24 '@INPUT0@',
25 'functests',
26 ],
27 )