-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
64 lines (56 loc) · 1.58 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
# -*- coding: utf-8 -*-
"""
Setup Module
Compiles the C functions
"""
import os.path
from setuptools import find_packages, setup
# 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
# 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="0.6-dev",
author="Ansgar Wehrhahn, Thomas Marquart, Nikolai Piskunov",
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/ivh/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",
],
)