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 plot directory
# Build on Mac:
# python setup.py build
# Copy calculations.so to plot directory
# make include paths
numpyInclude = numpy.get_include() + '/numpy'
pythonInclude = sys.prefix + '/include'
# make setup
setup(
name = 'calculations',
version = '1.0',
author = "Martin Strohalm",
maintainer = 'Martin Strohalm',
description = "Fast calculations for mspy.",
ext_modules=[
Extension('calculations', ['calculations.c'],
include_dirs=[numpyInclude, pythonInclude],
libraries=['m']
)
],
)
|