From 77f9ad0b1b39d68efd5966392e5025230bb450e1 Mon Sep 17 00:00:00 2001 From: John Turner Date: Tue, 9 Sep 2025 21:11:51 -0400 Subject: fix meson build Define all sources at the top level meson.build so that they get installed in the correct subdir. --- meson.build | 10 +++++++--- pypaste/meson.build | 3 --- pypaste/s3/meson.build | 1 - pypaste/sqlite/meson.build | 1 + 4 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 pypaste/meson.build delete mode 100644 pypaste/s3/meson.build create mode 100644 pypaste/sqlite/meson.build diff --git a/meson.build b/meson.build index 41ebb91..7c9ab84 100644 --- a/meson.build +++ b/meson.build @@ -4,9 +4,13 @@ python = import('python').find_installation( modules: ['pygments', 'zstandard', 'aiohttp', 'bozo4'], ) -sources = [] - -subdir('pypaste') +sources = files( + 'pypaste/__init__.py', + 'pypaste/__main__.py', + 'pypaste/s3/__init__.py', + 'pypaste/s3/bucket.py', + 'pypaste/sqlite/__init__.py', +) python.install_sources(sources, preserve_path: true) diff --git a/pypaste/meson.build b/pypaste/meson.build deleted file mode 100644 index f9ac8bc..0000000 --- a/pypaste/meson.build +++ /dev/null @@ -1,3 +0,0 @@ -sources += files('__init__.py', '__main__.py') - -subdir('s3') diff --git a/pypaste/s3/meson.build b/pypaste/s3/meson.build deleted file mode 100644 index dc7bce5..0000000 --- a/pypaste/s3/meson.build +++ /dev/null @@ -1 +0,0 @@ -sources += files('__init__.py', 'bucket.py') diff --git a/pypaste/sqlite/meson.build b/pypaste/sqlite/meson.build new file mode 100644 index 0000000..b1c4131 --- /dev/null +++ b/pypaste/sqlite/meson.build @@ -0,0 +1 @@ +sources += files('__init__.p'y) -- cgit v1.2.3