File: meson.build

package info (click to toggle)
meson-python 0.17.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,120 kB
  • sloc: python: 2,788; ansic: 219; makefile: 8
file content (29 lines) | stat: -rw-r--r-- 586 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# SPDX-FileCopyrightText: 2022 The meson-python developers
#
# SPDX-License-Identifier: MIT

project('subdirs', version: '1.0.0')

py = import('python').find_installation()

# in Meson >= 0.64 this could be replace with a single
# py.install_sources() with the 'preserve_path: true' argument.
py.install_sources(
    'subdirs/__init__.py',
    subdir: 'subdirs',
)

py.install_sources(
    'subdirs/a/__init__.py',
    subdir: 'subdirs/a',
)

py.install_sources(
    'subdirs/a/b/c.py',
    subdir: 'subdirs/a/b',
)

py.install_sources(
    'subdirs/b/c.py',
    subdir: 'subdirs/b',
)