summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJohn Glover <glover.john@gmail.com>2011-08-19 16:08:07 +0100
committerJohn Glover <glover.john@gmail.com>2011-08-19 16:08:07 +0100
commit855b4bac775617800f88de330c7eaf64c7678063 (patch)
tree3d65045d2e46b9cd866e416f365cfaa9ec436503 /setup.py
parentebe7477f7149301d48d639960b6a9bf0979fba1d (diff)
downloadsimpl-855b4bac775617800f88de330c7eaf64c7678063.tar.gz
simpl-855b4bac775617800f88de330c7eaf64c7678063.tar.bz2
simpl-855b4bac775617800f88de330c7eaf64c7678063.zip
Build simpl C++ module
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py26
1 files changed, 14 insertions, 12 deletions
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'])