-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
53 lines (45 loc) · 1.53 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
from setuptools import setup
def fill_make_template():
thisdir = os.path.dirname(os.path.realpath(__file__))
maketemplate = os.path.join(thisdir, 'pykima', 'make_template.template')
maketemplatepy = os.path.join(thisdir, 'pykima', 'make_template.py')
pycode = open(maketemplate).read().format(kimadir=thisdir)
print(pycode, file=open(maketemplatepy, 'w'))
fill_make_template()
setup(name='pykima',
version=open('VERSION').read().strip(), # same as kima
description='Analysis of results from kima',
author='João Faria',
author_email='[email protected]',
license='MIT',
url='https://github.com/j-faria/kima/tree/master/pykima',
packages=['pykima'],
install_requires=[
'numpy',
'scipy',
'matplotlib>=1.5.3',
'astropy',
'corner',
'loguniform',
'kumaraswamy',
'celerite',
'urepr',
'psutil',
],
entry_points={
'console_scripts': [
'kima-showresults = pykima.showresults:showresults',
'kima-checkpriors = pykima.check_priors:main',
'kima-template = pykima.make_template:main',
'kima-run = pykima.run:run_local',
'kima-kill = pykima.run:kill',
'kima-gui = pykima.kimaGUI:main',
]
},
package_data={'pykima': ['template/*']},
include_package_data=True,
)