2025-03-03 17:01:09 +02:00
|
|
|
if SHELL_OPT != 'enabled'
|
2025-02-07 02:41:02 +01:00
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
kea_shell_conf_data = configuration_data()
|
2025-02-24 12:01:19 +02:00
|
|
|
kea_shell_conf_data.set('PYTHON', PYTHON.full_path())
|
2025-02-28 11:00:03 +02:00
|
|
|
kea_shell_conf_data.set('PACKAGE_VERSION', PROJECT_VERSION)
|
|
|
|
kea_shell_conf_data.set('EXTENDED_VERSION', PROJECT_VERSION + ' (tarball)')
|
2025-02-07 02:41:02 +01:00
|
|
|
|
|
|
|
r = run_command(
|
2025-02-24 12:01:19 +02:00
|
|
|
PYTHON,
|
2025-02-07 02:41:02 +01:00
|
|
|
'-c',
|
|
|
|
'import sysconfig; print(sysconfig.get_paths()[\'purelib\'])',
|
|
|
|
check: true,
|
|
|
|
)
|
2025-02-11 09:58:06 +01:00
|
|
|
python_site_package = r.stdout().strip()
|
|
|
|
pkgpythondir = f'@python_site_package@/kea'
|
|
|
|
kea_shell_conf_data.set('PKGPYTHONDIR', pkgpythondir)
|
2025-02-07 02:41:02 +01:00
|
|
|
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,
|
2025-02-11 09:58:06 +01:00
|
|
|
install_dir: pkgpythondir,
|
2025-02-07 02:41:02 +01:00
|
|
|
)
|
|
|
|
configure_file(
|
|
|
|
input: 'kea_connector3.py',
|
|
|
|
output: 'kea_connector3.py',
|
|
|
|
copy: true,
|
|
|
|
install: false,
|
2025-02-11 09:58:06 +01:00
|
|
|
install_dir: pkgpythondir,
|
2025-02-07 02:41:02 +01:00
|
|
|
)
|
2025-02-18 15:54:20 +01:00
|
|
|
subdir('tests')
|