File: setup_py.m4

package info (click to toggle)
cbflib 0.9.7%2Bdfsg1-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 65,276 kB
  • sloc: ansic: 131,361; python: 22,780; sh: 3,108; makefile: 2,089; yacc: 659; java: 223; f90: 214; xml: 210; cpp: 58
file content (22 lines) | stat: -rw-r--r-- 854 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
#  pycbf/setup.py generated from m4/setup_py.m4
#

`# Import the things to build python binary extensions

from setuptools import setup, Extension

# Make our extension module

e = Extension(''`_pycbf''`,
              sources = ["pycbf_wrap.c","../src/cbf_simple.c"],
              define_macros=['define_macros`],
              extra_compile_args=["'extra_compile_args`"],
              'm4_ifelse(regexlibdir,`NOREGEXLIBDIR',`library_dirs=["../solib/","../lib/"],',`library_dirs=["../solib/","../lib/","'regexlibdir`"],')`
              'm4_ifelse(regexlib,`',`libraries=["cbf"],', `m4_ifelse(regexlib2,`',`libraries=["cbf","'regexlib`"],',`libraries=["cbf","'regexlib`","'regexlib2`"],')'  )`
              include_dirs = ["../include","'hdf5_prefix`/include"])

# Build it
setup(name="pycbf",
      ext_modules=[e],
      py_modules = ["pycbf"])'