forked from wolski/mspy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (27 loc) · 772 Bytes
/
setup.py
File metadata and controls
32 lines (27 loc) · 772 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
31
32
import sys
import numpy
from distutils.core import setup
from distutils.extension import Extension
# Build on WIN using MinGW:
# python setup.py build --compiler=mingw32
# Copy calculations.pyd to mspy directory
# Build on Mac:
# python setup.py build
# Copy calculations.so to mspy directory
# make include paths
numpyInclude = numpy.get_include() + '/numpy'
pythonInclude = sys.prefix + '/include'
# make setup
setup(
name = 'calculations',
version = '1.1',
author = "Martin Strohalm",
maintainer = 'Martin Strohalm',
description = "Fast calculations for mspy.",
ext_modules=[
Extension('calculations', ['calculations.c'],
include_dirs=[numpyInclude, pythonInclude]
#,libraries=['m']
)
],
)