diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-03-09 18:43:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 01:43:21 +0200 |
commit | d4bdd8318b4cc668325637def9098570e7e12256 (patch) | |
tree | b37323d7f3fe9b4834a98ef517ed7e56b9e99a80 /setup.py | |
parent | 56a0e74d711fc050c6574e2da4e2f745da6a56f5 (diff) | |
download | meson-d4bdd8318b4cc668325637def9098570e7e12256.zip meson-d4bdd8318b4cc668325637def9098570e7e12256.tar.gz meson-d4bdd8318b4cc668325637def9098570e7e12256.tar.bz2 |
setuptools: move stuff to declarative cfg if possible [skip ci]
We're down to just declaring the data files in python now.
setup.cfg can, uniquely, retrieve version info by trying to parse the
AST for simple assignments (which we use) instead of importing the
entire module.
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -20,23 +20,12 @@ if sys.version_info < (3, 6): raise SystemExit('ERROR: Tried to install Meson with an unsupported Python version: \n{}' '\nMeson requires Python 3.6.0 or greater'.format(sys.version)) -from mesonbuild.coredata import version -from setuptools import setup, find_packages +from setuptools import setup -# On windows, will create Scripts/meson.exe and Scripts/meson-script.py -# Other platforms will create bin/meson -entries = {'console_scripts': ['meson=mesonbuild.mesonmain:main']} data_files = [] if sys.platform != 'win32': # Only useful on UNIX-like systems data_files = [('share/man/man1', ['man/meson.1']), ('share/polkit-1/actions', ['data/com.mesonbuild.install.policy'])] -setup(name='meson', - version=version, - packages=find_packages( - include=['mesonbuild', 'mesonbuild.*'], - exclude=['*.data'] - ), - entry_points=entries, - data_files=data_files,) +setup(data_files=data_files,) |