-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
59 lines (50 loc) · 1.67 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
from setuptools import setup, find_packages
from distutils.extension import Extension
from pip.req import parse_requirements
import Cython.Compiler.Options
import cython_gsl
import numpy
from Cython.Build import cythonize
# Generate compiler annotations in HTML
Cython.Compiler.Options.annotate = True
ext_modules = [
Extension(
"ciles.integrator",
["ciles/integrator.pyx"],
include_dirs=[
numpy.get_include(), cython_gsl.get_cython_include_dir()],
libraries=cython_gsl.get_libraries(),
library_dirs=[cython_gsl.get_library_dir()],
)
]
# Parse requirements
install_reqs = parse_requirements('requirements.txt', session=False)
reqs = [str(ir.req) for ir in install_reqs]
# Parse readme
def readme():
with open('README.rst') as f:
return f.read()
setup(
include_dirs=[cython_gsl.get_include()],
ext_modules=cythonize(ext_modules),
packages=find_packages(),
test_suite='tests',
name='ciles',
description='Langevin integrator for SDEs with constant drift and\
diffusion on continuous intervals with circular boundary\
conditions.',
long_description=readme(),
author='Alex Seeholzer',
author_email='[email protected]',
url='https://github.com/flinz/ciles',
keywords=['science', 'langevin', 'math'], # arbitrary keywords
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Medical Science Apps.'],
license='GPLv2',
version='0.1.0',
install_requires=reqs,
setup_requires=reqs
)