Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
cantaro86
GitHub Repository: cantaro86/Financial-Models-Numerical-Methods
Path: blob/master/setup.py
1675 views
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
"""
4
Created on Fri Jul 29 17:49:22 2023
5
6
@author: cantaro86
7
"""
8
9
10
from setuptools import Extension, setup
11
from Cython.Build import build_ext, cythonize
12
import numpy
13
14
extensions = [
15
Extension(
16
"src/FMNM/cython/*",
17
["src/FMNM/cython/*.pyx"],
18
include_dirs=[numpy.get_include()],
19
define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")],
20
)
21
]
22
23
24
setup(
25
name="fmnm_cython",
26
cmdclass={"build_ext": build_ext},
27
ext_modules=cythonize(extensions, language_level="3"),
28
)
29
30