-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
46 lines (40 loc) · 1.13 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
from setuptools import find_packages, setup, Extension
import numpy as np
# Build project with:
# python setup.py build_ext --inplace
with open("README.rst") as fp:
readme = fp.read()
with open("HISTORY.rst") as fp:
history = fp.read()
ext_modules = [
Extension(
"cyl1tf.interface",
["cyl1tf/interface.pyx", "source/l1tf.c"],
libraries=["m", "blas", "lapack"],
include_dirs=["cyl1tf", "source", np.get_include()],
extra_compile_args=["-Ofast"],
),
]
setup(
name="cyl1tf",
version="0.1.3",
description="Cython implementation of L1 trend fitting.",
long_description=readme + "\n\n" + history,
long_description_content_type="text/x-rst",
author="Albert Kottke",
author_email="[email protected]",
url="https://github.com/arkottke/cyl1tf",
packages=find_packages(exclude=["tests"]),
setup_requires=[
# Setuptools 18.0 properly handles Cython extensions.
"setuptools>=18.0",
"cython",
"numpy",
],
tests_require=[
"pytest",
"pytest-runner",
],
ext_modules=ext_modules,
zip_safe=False,
)