-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
76 lines (63 loc) · 2.17 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
#!/usr/bin/env python
from __future__ import print_function
"""objectivefunction
Objective function utilities for inversions
"""
from setuptools import find_packages
try:
from numpy.distutils.core import setup
except Exception:
raise Exception(
"Install requires numpy. "
"If you use conda, `conda install numpy` "
"or you can use pip, `pip install numpy`"
)
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Natural Language :: English',
]
with open("README.rst") as f:
LONG_DESCRIPTION = ''.join(f.readlines())
# def configuration(parent_package='', top_path=None):
# from numpy.distutils.misc_util import Configuration
# config = Configuration(None, parent_package, top_path)
# config.set_options(ignore_setup_xxx_py=True,
# assume_default_configuration=True,
# delegate_options_to_subpackages=True,
# quiet=True)
# config.add_subpackage('objectivefunction')
# return config
setup(
name="objectivefunction",
version="0.0.3b0",
install_requires=[
'numpy>=1.7',
'scipy>=0.13',
'matplotlib',
'properties>=0.3.6b0',
],
author="Open Geophysics Developers",
author_email="[email protected]",
description="Objective function utilities for inversions",
long_description=LONG_DESCRIPTION,
license="MIT",
keywords="optimization, inversion, objective functions",
url="http://simpeg.xyz/",
download_url="https://github.com/opengeophysics/objectivefunction",
classifiers=CLASSIFIERS,
platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
use_2to3=False,
setup_requires=['numpy'],
# configuration=configuration
)