summaryrefslogtreecommitdiff
path: root/run_meson_command_tests.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-03-08 23:28:15 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2021-03-09 22:59:56 +0200
commite494be9b02cf0dccbc2b7010a6c5063c77bbada7 (patch)
tree6fd3b40739ac92a61d56d039091ed84fde1a66d3 /run_meson_command_tests.py
parent89202aaaef3fde7a8d4e378629526146ad1f7f30 (diff)
downloadmeson-e494be9b02cf0dccbc2b7010a6c5063c77bbada7.tar.gz
setuptools: don't hardcode list of modules to install, use find_packages
And don't run a pointless test to verify that the hardcoded list has been manually maintained correctly. The same test rules used there can translate directly to find_packages pattern rules.
Diffstat (limited to 'run_meson_command_tests.py')
-rwxr-xr-xrun_meson_command_tests.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/run_meson_command_tests.py b/run_meson_command_tests.py
index 750e09d48..c84e415ce 100755
--- a/run_meson_command_tests.py
+++ b/run_meson_command_tests.py
@@ -136,21 +136,6 @@ class CommandTests(unittest.TestCase):
# Check that all the files were installed correctly
self.assertTrue(bindir.is_dir())
self.assertTrue(pylibdir.is_dir())
- from setup import packages
- # Extract list of expected python module files
- expect = set()
- for pkg in packages:
- expect.update([p.as_posix() for p in Path(pkg.replace('.', '/')).glob('*.py')])
- # Check what was installed, only count files that are inside 'mesonbuild'
- have = set()
- for p in Path(pylibdir).glob('**/*.py'):
- s = p.as_posix()
- if 'mesonbuild' not in s:
- continue
- if '/data/' in s:
- continue
- have.add(s[s.rfind('mesonbuild'):])
- self.assertEqual(have, expect)
# Run `meson`
os.chdir('/')
resolved_meson_command = [str(bindir / 'meson')]