forked from ivh/PyReduce
-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
76 lines (64 loc) · 1.78 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
# -*- coding: utf-8 -*-
"""
Setup Module
Compiles the C functions
"""
import os.path
from setuptools import find_packages, setup
import versioneer
# this = os.path.dirname(__file__)
# that = os.path.join(this, "pyreduce")
# sys.path.append(that)
# try:
# from clib import build_extract
# except ModuleNotFoundError:
# # Wait for pip to install CFFI first
# print("Install CFFI")
# pass
cmdclass = versioneer.get_cmdclass()
try:
from codemeta.codemeta import CodeMetaCommand
cmdclass["codemeta"] = CodeMetaCommand
except ImportError:
pass
# from pyreduce.clib import build_cluster
# build_cluster.build()
# from .pyreduce.clib import build_extract
# build_extract.build()
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="pyreduce-astro",
version=versioneer.get_version(),
cmdclass=cmdclass,
author="Ansgar Wehrhahn",
author_email="[email protected]",
description="A data reduction package for echelle spectrographs",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/AWehrhahn/PyReduce",
packages=find_packages(),
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
],
# setup_requires=["cffi>=1.0.0"],
cffi_modules=[
"pyreduce/clib/build_extract.py:ffibuilder_vertical",
"pyreduce/clib/build_extract.py:ffibuilder_curved",
],
install_requires=[
"cffi>=1.0.0",
"numpy",
"scipy",
"astropy",
"matplotlib",
"scikit-image",
"python-dateutil",
"wget",
"joblib",
"jsonschema>=3.0.1",
"tqdm",
],
)