-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
72 lines (56 loc) · 1.83 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
from setuptools import setup, find_packages
from setuptools.extension import Extension
import os
try:
from Cython.Build import cythonize
USE_CYTHON = True
except ImportError:
USE_CYTHON = False
if USE_CYTHON:
cext = '.pyx'
else:
cext = '.c'
print('C extension: {0}'.format(cext))
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme = open('README.rst').read()
doclink = """
Documentation
-------------
The full documentation can be generated with Sphinx"""
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
desc = open("README.rst").read()
PACKAGE_PATH = os.path.abspath(os.path.join(__file__, os.pardir))
print(PACKAGE_PATH)
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
PACKAGE_PATH = os.path.abspath(os.path.join(__file__, os.pardir))
setup(
name = "gsf",
author = "Takahiro Morishita",
author_email = "[email protected]",
description = "SED Fitting Code",
license = "IPAC",
url = "https://github.com/mtakahiro",
download_url = "https://github.com/",
packages=['gsf', 'gsf/Logger/'],
package_dir={'gsf': 'gsf'},
requires=['lmfit', 'fsps', 'emcee', 'corner'],
use_scm_version=True,
# include_package_data=True,
setup_requires=['setuptools_scm'],
# 'python-fsps' could not be added here, somehow.
# long_description=read('README.rst'),
classifiers=[
"Development Status :: 1 - Planning",
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Astronomy',
],
zip_safe=False,
)