Mercurial > pytave
view setup.py.in @ 72:e9834fd34416 pytave-task
Fix lp:368487.
author | David Grundberg <individ@acc.umu.se> |
---|---|
date | Wed, 01 Jul 2009 14:21:47 +0200 |
parents | e3de0f6f1552 |
children | b0991511a16d 8145ecfecfb9 |
line wrap: on
line source
#!@PYTHON@ # -*- coding: utf-8; c-basic-offset: 3; indent-tabs-mode: nil; tab-width: 3; -*- # @configure_input@ from distutils.core import setup, Extension, DistutilsModuleError include_dirs = ['/usr/local/include/octave-3.1.55', '/home/hajek/devel/pytave-repo/pytave', '.'] # Python always included. # check for numpy. If it exists, define the path. if '@pytave_enable_numpy@' == 'yes': try: from numpy import get_include include_dirs.append(get_include()) except ImportError: raise DistutilsModuleError("could not found numpy") setup( name = 'pytave', version = '@PACKAGE_VERSION@', author = '@PACKAGE_NAME@ team', author_email = '@PACKAGE_BUGREPORT@', package_dir = {'pytave' : '@srcdir@/package'}, packages = ['pytave'], ext_modules = [ Extension('pytave/_pytave', language = "c++", sources = [ '@srcdir@/octave_to_python.cc', '@srcdir@/pytave.cc', '@srcdir@/exceptions.cc', '@srcdir@/python_to_octave.cc', ], depends = [ '@srcdir@/arrayobjectdefs.h', '@abs_builddir@/config.h', '@srcdir@/octave_to_python.h', '@srcdir@/pytavedefs.h', '@srcdir@/exceptions.h', '@srcdir@/python_to_octave.h' ], # TODO: Check whether paths work on Windows or not. # The file separator might be wrong. (Must be / in setup.cfg) include_dirs = include_dirs, define_macros = [('HAVE_CONFIG_H', '1')], library_dirs = ['@OCTAVE_LIBRARYDIR@'], runtime_library_dirs = ['@PYTAVE_OCTAVE_RPATH@'], libraries = ['octinterp', 'octave', 'cruft', '@BOOST_PYTHON_LIB@'] ) ] )