-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
74 lines (57 loc) · 1.89 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
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))
with open("requirements.txt") as f:
required = f.read().splitlines()
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 = "niriss_ghost",
version = "1.0.0",
author = "Takahiro Morishita",
author_email = "[email protected]",
description = "A set of scripts for characterization of NIRISS ghosts",
license = "STScI",
url = "https://github.com/mtakahiro",
download_url = "https://github.com/",
packages=['niriss_ghost'],#,'example'
package_data={'niriss_ghost' : ['niriss_ghost_gap_summary.txt']},
#package_dir={'src': 'src'},
install_requires=required,
classifiers=[
"Development Status :: 1 - Planning",
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Astronomy',
],
zip_safe=False,
#install_requires=requires,
#ext_modules = extensions,
)