-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
44 lines (38 loc) · 1.34 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
from setuptools import setup, find_packages, Extension
from Cython.Build import cythonize
import numpy as np
# List your Cython extension modules
ext_aov = Extension('pythia.timeseries.aov',
sources=['pythia/timeseries/aov.pyx'],
include_dirs=[np.get_include()],
language='c',
libraries=[],
extra_compile_args=[]
)
ext_ce = Extension('pythia.timeseries.conditional_entropy',
sources=['pythia/timeseries/conditional_entropy.pyx'],
include_dirs=[np.get_include()],
language='c',
libraries=[],
extra_compile_args=[]
)
cython_extensions = [ ext_aov, ext_ce ]
# Automatically include all Python packages
packages = find_packages()
setup(
name='pythia',
version='0.1.0',
description='Time-series analysis tools for astronomical datasets.',
author='Cole Johnston',
author_email='[email protected]',
url='https://github.com/colej/pythia',
packages=packages,
install_requires=[
# List your project's dependencies here
],
ext_modules=cythonize(cython_extensions),
classifiers=[
# Choose appropriate classifiers from:
# https://pypi.org/classifiers/
],
)