-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathsetup.py
More file actions
28 lines (22 loc) · 566 Bytes
/
setup.py
File metadata and controls
28 lines (22 loc) · 566 Bytes
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 29 17:49:22 2023
@author: cantaro86
"""
from setuptools import Extension, setup
from Cython.Build import build_ext, cythonize
import numpy
extensions = [
Extension(
"src/FMNM/cython/*",
["src/FMNM/cython/*.pyx"],
include_dirs=[numpy.get_include()],
define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")],
)
]
setup(
name="fmnm_cython",
cmdclass={"build_ext": build_ext},
ext_modules=cythonize(extensions, language_level="3"),
)