34 lines
896 B
Python
34 lines
896 B
Python
#!/usr/bin/env python
|
|
"""Setup script for the theta package
|
|
"""
|
|
|
|
from setuptools import setup, find_packages, Extension
|
|
from Cython.Build import cythonize
|
|
from Cython.Distutils import build_ext
|
|
import numpy
|
|
|
|
extensions = [
|
|
Extension('series',
|
|
sources=['series.pyx',
|
|
'bessel.c'],
|
|
include_dirs=[numpy.get_include(), 'gsl/include'],
|
|
library_dirs=['gsl/lib'],
|
|
libraries=['gsl', 'gslcblas'],
|
|
extra_compile_args=["-std=c++11", '-I./gsl/include'],
|
|
extra_link_args=["-std=c++11", "-L./gsl/lib"]
|
|
)
|
|
]
|
|
|
|
setup(
|
|
name='functions',
|
|
author='kruskallin',
|
|
author_email='kruskallin@tamu.edu',
|
|
packages=find_packages(),
|
|
cmdclass={'build_ext': build_ext},
|
|
ext_modules=cythonize(extensions),
|
|
install_requires=[
|
|
"numpy >= 1.13",
|
|
],
|
|
zip_safe=False,
|
|
)
|