Mercurial > pytave
view setup.py.in @ 115:00d19f71c9ca
Initial implementation of py oct-file
* py.cc: Initial implementation of py oct function.
* ax_octave.m4: Find and export path to mkoctfile.
* Makefile.am (.cc.oct): Custom rule to build py.oct.
(all-am): Depend on py.oct.
* .hgignore: Include py.oct in the ignore list.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Sun, 20 Sep 2015 15:12:47 +0200 |
parents | 935d69473ebd |
children |
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 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' ], # Python always included, so don't bother. # TODO: Check whether paths work on Windows or not. # The file separator might be wrong. (Must be / in setup.cfg) include_dirs = ['@OCTAVE_INCLUDEDIR@', '@NUMPY_INCLUDEDIR@', '@abs_builddir@', '@srcdir@', ], define_macros = [('HAVE_CONFIG_H', '1')], library_dirs = ['@OCTAVE_LIBRARYDIR@'], runtime_library_dirs = ['@PYTAVE_OCTAVE_RPATH@'], libraries = ['octinterp', 'octave', 'cruft', '@BOOST_PYTHON_LIB@'] ) ] )