3 from distutils
.core
import setup
, Extension
7 packages
= ['glib-2.0', 'jack', 'fluidsynth', 'libusb-1.0', 'smf', 'sndfile']
9 eargs
= os
.popen("pkg-config --cflags %s" % (" ".join(packages
)), "r").read().split()
10 eargs
.append("-std=c99")
12 libs
= os
.popen("pkg-config --libs %s" % (" ".join(packages
)), "r").read().split()
77 version
="0.04", description
="Assorted music-related code",
78 author
="Krzysztof Foltman", author_email
="wdev@foltman.com",
79 url
="http://repo.or.cz/w/calfbox.git",
81 package_dir
={'calfbox':'py'},
83 Extension('_cbox', csources
,
84 extra_compile_args
= eargs
,
87 define_macros
=[("_GNU_SOURCE","1"),("_POSIX_C_SOURCE", "199309L"),("USE_PYTHON","1"),("CALFBOX_AS_MODULE", "1")],
88 undef_macros
=['NDEBUG'],
89 depends
= ['setup.py']