| 1 |
# link against pysam |
| 2 |
def make_ext(modname, pyxfilename): |
| 3 |
from distutils.extension import Extension |
| 4 |
import pysam |
| 5 |
return Extension(name = modname, |
| 6 |
sources = [pyxfilename], |
| 7 |
include_dirs = pysam.get_include(), |
| 8 |
define_macros = pysam.get_defines()) |