-
Notifications
You must be signed in to change notification settings - Fork 31
/
setup.py
80 lines (68 loc) · 2.35 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except:
from distutils.core import setup
import re
from Cython.Build import cythonize
from distutils.extension import Extension
from Cython.Distutils import build_ext
extra_include_dirs = ['.']
try:
import numpy
extra_include_dirs += [numpy.get_include()]
except:
pass
ext_args = dict(
include_dirs=extra_include_dirs,
extra_compile_args=['-O3'],
extra_link_args=['-O3'],
)
with open('README.rst', encoding="utf-8") as readme_file:
readme = readme_file.read()
with open('HISTORY.rst', encoding="utf-8") as history_file:
history = re.sub(r':py:class:`([^`]+)`', r'\1',
history_file.read())
requirements = ['numpy', 'cython', 'matplotlib', 'corner']
setup_requirements = ['pytest-runner', ]
test_requirements = ['pytest>=3', ]
setup(
author="Johannes Buchner",
author_email='[email protected]',
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
description="Fit and compare complex models reliably and rapidly. Advanced Nested Sampling.",
install_requires=requirements,
ext_modules = cythonize([
Extension('ultranest.mlfriends', ["ultranest/mlfriends.pyx"],
**ext_args),
Extension('ultranest.stepfuncs', ["ultranest/stepfuncs.pyx"],
**ext_args),
]),
license="GNU General Public License v3",
long_description=readme + '\n\n' + history,
include_package_data=True,
keywords='ultranest',
name='ultranest',
packages=['ultranest'],
setup_requires=setup_requirements,
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/JohannesBuchner/ultranest',
version='4.4.0',
zip_safe=False,
cmdclass={'build_ext': build_ext},
)