-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (25 loc) · 736 Bytes
/
setup.py
File metadata and controls
31 lines (25 loc) · 736 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
29
30
'''from setuptools import setup, Extension
module = Extension('primes', sources=['primesmodule.c'])
setup(
name='primes',
version='1.0',
ext_modules=[module],
)'''
from setuptools import setup, Extension
mini_ml_module = Extension(
name='mini_ml',
sources=[
'csrc/vector.c', # Vector functions
'csrc/matrix.c', # Matrix functions
'csrc/wrapper.c', # Python wrapper functions
],
include_dirs=['csrc'],
extra_compile_args=['-O1', '-Wall', '-fPIC'], # Optimizations & warnings
)
# Setup script
setup(
name='mini_ml',
version='1.0',
description='Mini ML library in C for Python',
ext_modules=[mini_ml_module],
)