mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-28 20:47:48 +00:00
41 lines
1.0 KiB
Meson
41 lines
1.0 KiB
Meson
|
if not python_exe.found()
|
||
|
subdir_done()
|
||
|
endif
|
||
|
|
||
|
kea_shell_conf_data = configuration_data()
|
||
|
kea_shell_conf_data.set('PYTHON', python_exe.full_path())
|
||
|
kea_shell_conf_data.set('PACKAGE_VERSION', project_version)
|
||
|
kea_shell_conf_data.set('EXTENDED_VERSION', project_version + ' (tarball)')
|
||
|
|
||
|
r = run_command(
|
||
|
python_exe,
|
||
|
'-c',
|
||
|
'import sysconfig; print(sysconfig.get_paths()[\'purelib\'])',
|
||
|
check: true,
|
||
|
)
|
||
|
PYTHON_SITE_PACKAGE = r.stdout().strip()
|
||
|
PKGPYTHONDIR = f'@PYTHON_SITE_PACKAGE@/kea'
|
||
|
kea_shell_conf_data.set('PKGPYTHONDIR', PKGPYTHONDIR)
|
||
|
configure_file(
|
||
|
input: 'kea-shell.in',
|
||
|
output: 'kea-shell',
|
||
|
configuration: kea_shell_conf_data,
|
||
|
install: true,
|
||
|
install_dir: get_option('sbindir'),
|
||
|
)
|
||
|
# Install into the system seti package location or not?
|
||
|
configure_file(
|
||
|
input: 'kea_conn.py',
|
||
|
output: 'kea_conn.py',
|
||
|
copy: true,
|
||
|
install: false,
|
||
|
install_dir: PKGPYTHONDIR,
|
||
|
)
|
||
|
configure_file(
|
||
|
input: 'kea_connector3.py',
|
||
|
output: 'kea_connector3.py',
|
||
|
copy: true,
|
||
|
install: false,
|
||
|
install_dir: PKGPYTHONDIR,
|
||
|
)
|