setup.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #!/usr/bin/env python3
  2. # Copyright 2016 The Meson development team
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. # http://www.apache.org/licenses/LICENSE-2.0
  7. # Unless required by applicable law or agreed to in writing, software
  8. # distributed under the License is distributed on an "AS IS" BASIS,
  9. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. # See the License for the specific language governing permissions and
  11. # limitations under the License.
  12. import sys
  13. if sys.version_info[0] < 3:
  14. print('Tried to install with Python 2, Meson only supports Python 3.')
  15. sys.exit(1)
  16. # We need to support Python installations that have nothing but the basic
  17. # Python installation. Use setuptools when possible and fall back to
  18. # plain distutils when setuptools is not available.
  19. try:
  20. from setuptools import setup
  21. except ImportError:
  22. from distutils.core import setup
  23. from mesonbuild.coredata import version
  24. setup(name='meson',
  25. version=version,
  26. description='A high performance build system',
  27. author='Jussi Pakkanen',
  28. author_email='jpakkane@gmail.com',
  29. url='http://mesonbuild.com',
  30. license=' Apache License, Version 2.0',
  31. packages=['mesonbuild',
  32. 'mesonbuild.modules',
  33. 'mesonbuild.scripts',
  34. 'mesonbuild.backend',
  35. 'mesonbuild.wrap'],
  36. scripts=['meson.py',
  37. 'mesonconf.py',
  38. 'mesonintrospect.py',
  39. 'wraptool.py'],
  40. data_files=[('share/man/man1', ['man/meson.1',
  41. 'man/mesonconf.1',
  42. 'man/mesonintrospect.1',
  43. 'man/wraptool.1'])],
  44. classifiers=['Development Status :: 5 - Production/Stable',
  45. 'Environment :: Console',
  46. 'Intended Audience :: Developers',
  47. 'License :: OSI Approved :: Apache Software License',
  48. 'Natural Language :: English',
  49. 'Operating System :: MacOS :: MacOS X',
  50. 'Operating System :: Microsoft :: Windows',
  51. 'Operating System :: POSIX :: BSD',
  52. 'Operating System :: POSIX :: Linux',
  53. 'Programming Language :: Python :: 3 :: Only',
  54. 'Topic :: Software Development :: Build Tools',
  55. ],
  56. long_description='''Meson is a cross-platform build system designed to be both as
  57. fast and as user friendly as possible. It supports many languages and compilers, including
  58. GCC, Clang and Visual Studio. Its build definitions are written in a simple non-turing
  59. complete DSL.''')