|
| 1 | +#!/usr/bin/env python3 |
| 2 | +from support.classifiers import classifiers |
| 3 | + |
| 4 | +from setuptools import setup |
| 5 | + |
| 6 | +import support |
| 7 | +support.use("system") |
| 8 | +from support.setup_codes import setup_commands |
| 9 | + |
| 10 | +name = 'amuse-nbody6xx' |
| 11 | +author = 'The AMUSE team' |
| 12 | +author_email = 'info@amusecode.org' |
| 13 | +license_ = "Apache License 2.0" |
| 14 | +url = 'http://www.amusecode.org/' |
| 15 | +install_requires = [ |
| 16 | + 'amuse-framework', |
| 17 | +] |
| 18 | +description = 'The Astrophysical Multipurpose Software Environment - Nbody6++' |
| 19 | +with open("README.md", "r") as fh: |
| 20 | + long_description = fh.read() |
| 21 | +long_description_content_type = "text/markdown" |
| 22 | + |
| 23 | +extensions = [] |
| 24 | + |
| 25 | +all_data_files = [] |
| 26 | + |
| 27 | +packages = [ |
| 28 | + 'amuse.community.nbody6xx', |
| 29 | +] |
| 30 | + |
| 31 | +package_data = { |
| 32 | +} |
| 33 | + |
| 34 | +mapping_from_command_name_to_command_class = setup_commands() |
| 35 | + |
| 36 | +try: |
| 37 | + from src.amuse.community.nbody6xx.version import version |
| 38 | + use_scm_version = False |
| 39 | + setup_requires = [] |
| 40 | +except ImportError: |
| 41 | + version = False |
| 42 | + setup_requires = ['setuptools_scm'] |
| 43 | + use_scm_version = { |
| 44 | + "root": "../..", |
| 45 | + "relative_to": __file__, |
| 46 | + "write_to": "src/amuse/community/nbody6xx/version.py", |
| 47 | + } |
| 48 | + |
| 49 | +setup( |
| 50 | + name=name, |
| 51 | + use_scm_version=use_scm_version, |
| 52 | + setup_requires=setup_requires, |
| 53 | + version=version, |
| 54 | + classifiers=classifiers, |
| 55 | + url=url, |
| 56 | + author_email=author_email, |
| 57 | + author=author, |
| 58 | + license=license_, |
| 59 | + description=description, |
| 60 | + long_description=long_description, |
| 61 | + long_description_content_type=long_description_content_type, |
| 62 | + install_requires=install_requires, |
| 63 | + python_requires=">=3.5", |
| 64 | + cmdclass=mapping_from_command_name_to_command_class, |
| 65 | + ext_modules=extensions, |
| 66 | + package_dir={ |
| 67 | + 'amuse.community.nbody6xx': 'src/amuse/community/nbody6xx', |
| 68 | + }, |
| 69 | + packages=packages, |
| 70 | + package_data=package_data, |
| 71 | + data_files=all_data_files, |
| 72 | +) |
0 commit comments