File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ project(
1313python = import (' python' ).find_installation(' python3' , pure : false )
1414python_dep = python.dependency ()
1515
16+ fs = import (' fs' )
17+
1618libsystemd_dep = dependency (' libsystemd' )
1719
1820add_project_arguments (
Original file line number Diff line number Diff line change @@ -46,14 +46,18 @@ python.extension_module(
4646)
4747
4848# Install Python modules
49- python.install_sources (
49+ py_files = files (
5050 ' __init__.py' ,
5151 ' journal.py' ,
5252 ' daemon.py' ,
53- subdir : ' systemd' ,
5453)
5554
56- # Install test modules
55+ python.install_sources(py_files, subdir : ' systemd' )
56+ foreach file : py_files
57+ fs.copyfile(file)
58+ endforeach
59+
60+ # Test code
5761python.install_sources(
5862 ' test/test_daemon.py' ,
5963 ' test/test_journal.py' ,
@@ -62,6 +66,7 @@ python.install_sources(
6266 subdir : ' systemd/test' ,
6367)
6468
69+ # The 'update-constants' target
6570include_dir = libsystemd_dep.get_variable (pkgconfig : ' includedir' )
6671
6772update_constants = custom_target (
You can’t perform that action at this time.
0 commit comments