-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
52 lines (47 loc) · 1.56 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
from setuptools import setup, find_packages, Extension
from setuptools.command.build_ext import build_ext
import numpy
extensions = [
Extension(
"chainopy._backend._absorbing",
sources=["chainopy/_backend/_absorbing.pyx"],
include_dirs=[numpy.get_include()],
),
Extension(
"chainopy._backend._is_communicating",
sources=["chainopy/_backend/_is_communicating.pyx"],
include_dirs=[numpy.get_include()],
),
Extension(
"chainopy._backend._learn_matrix",
sources=["chainopy/_backend/_learn_matrix.pyx"],
include_dirs=[numpy.get_include()],
),
Extension(
"chainopy._backend._simulate",
sources=["chainopy/_backend/_simulate.pyx"],
include_dirs=[numpy.get_include()],
),
Extension(
"chainopy._backend._stationary_dist",
sources=["chainopy/_backend/_stationary_dist.pyx"],
include_dirs=[numpy.get_include()],
),
]
class CustomBuildExtCommand(build_ext):
def build_extensions(self):
super().build_extensions()
setup(
name="chainopy",
version="1.0.3",
description="A Python Library for Markov Chain based Stochastic Analysis!",
long_description=open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
author="Aadya Aneesh Chinubhai",
author_email="aadyachinubhai@gmail.com",
url="https://github.com/aadya940/chainopy",
packages=find_packages(),
include_package_data=True,
ext_modules=extensions,
cmdclass={"build_ext": CustomBuildExtCommand},
)