From 855b4bac775617800f88de330c7eaf64c7678063 Mon Sep 17 00:00:00 2001 From: John Glover Date: Fri, 19 Aug 2011 16:08:07 +0100 Subject: Build simpl C++ module --- setup.py | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 5be18ec..0cef584 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ to be released in software. Simpl is primarily intended as a tool for other rese in the field, allowing them to easily combine, compare and contrast many of the published analysis/synthesis algorithms. """ -from distutils.core import setup, Extension +from setuptools import setup, Extension import os from glob import glob @@ -107,20 +107,22 @@ sms = Extension("simpl/_simplsms", libraries=['m', 'fftw3', 'gsl', 'gslcblas'], extra_compile_args=['-DMERSENNE_TWISTER']) + # ------------------------------------------------------------------------------ -# Loris +# SIMPL # ------------------------------------------------------------------------------ -loris_sources = glob('src/loris/*.C') -loris_sources.extend(glob('src/loris/*.c')) -loris_sources.append('simpl/loris.i') -loris_include_dirs = ['src/loris'] -loris_include_dirs.extend(include_dirs) +simpl_sources = glob('src/simpl/*.cpp') +simpl_include_dirs = ['src/simpl'] +simpl_include_dirs.extend(include_dirs) + +simplloris_sources = ['simpl/simplloris.i'] +simplloris_sources.extend(simpl_sources) -loris = Extension("simpl/_simplloris", - sources=loris_sources, - include_dirs=loris_include_dirs, - swig_opts=swig_opts) +simplloris = Extension("simpl/_simplloris", + sources=simplloris_sources, + include_dirs=simpl_include_dirs, + swig_opts=swig_opts) # ------------------------------------------------------------------------------ # Package @@ -138,5 +140,5 @@ setup(name='simpl', author_email='j@johnglover.net', platforms=["Linux", "Mac OS-X", "Unix", "Windows"], version='0.3', - ext_modules=[sndobj, sms, loris], + ext_modules=[sndobj, sms, simplloris], packages=['simpl', 'simpl.plot']) -- cgit v1.2.3