File tree Expand file tree Collapse file tree 3 files changed +25
-11
lines changed Expand file tree Collapse file tree 3 files changed +25
-11
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,22 +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' ,
54- )
53+ )
5554
56- # Install test modules
57- python.install_sources(
58- ' test/test_daemon.py' ,
59- ' test/test_journal.py' ,
60- ' test/test_login.py' ,
61- ' test/test_id128.py' ,
62- subdir : ' systemd/test' ,
63- )
55+ python.install_sources(py_files, subdir : ' systemd' )
56+ foreach file : py_files
57+ fs.copyfile(file)
58+ endforeach
6459
60+ # The 'update-constants' target
6561include_dir = libsystemd_dep.get_variable (pkgconfig : ' includedir' )
6662
6763update_constants = custom_target (
@@ -73,3 +69,5 @@ update_constants = custom_target(
7369 meson .current_source_dir() / ' id128-defines.h' ,
7470 include_dir / ' systemd/sd-messages.h' ,
7571 ])
72+
73+ subdir (' test' )
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: LGPL-2.1-or-later
2+
3+ # Install test modules
4+ py_files = files (
5+ ' test_daemon.py' ,
6+ ' test_journal.py' ,
7+ ' test_login.py' ,
8+ ' test_id128.py' ,
9+ )
10+
11+ python.install_sources(py_files, subdir : ' systemd/test' )
12+ foreach file : py_files
13+ fs.copyfile(file)
14+ endforeach
You can’t perform that action at this time.
0 commit comments