forked from ucl-pond/kde_ebm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (37 loc) · 1.66 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
# Authors: Nicholas C. Firth, Neil P. Oxtoby
# License: MIT
__version__ = '0.0.2'
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration(None, parent_package, top_path)
# Avoid non-useful msg:
# "Ignoring attempt to set 'name' (from ... "
config.set_options(ignore_setup_xxx_py=True,
assume_default_configuration=True,
delegate_options_to_subpackages=True,
quiet=True)
config.add_subpackage('kde_ebm')
return config
def setup_package():
metadata = dict(name='kde_ebm',
maintainer='Neil P. Oxtoby',
maintainer_email='[email protected]',
description='KDE EBM code',
license='TBC',
url='https://ucl-pond.github.io/kde_ebm',
version=__version__,
zip_safe=False,
classifiers=['Intended Audience :: Science/Research',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
],
)
from numpy.distutils.core import setup
metadata['configuration'] = configuration
setup(**metadata)
if __name__ == "__main__":
setup_package()