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()
74 version
="0.04", description
="Assorted music-related code",
75 author
="Krzysztof Foltman", author_email
="wdev@foltman.com",
76 url
="http://repo.or.cz/w/calfbox.git",
78 package_dir
={'calfbox':'py'},
80 Extension('_cbox', csources
,
81 extra_compile_args
= eargs
,
84 define_macros
=[("_GNU_SOURCE","1"),("_POSIX_C_SOURCE", "199309L"),("USE_PYTHON","1"),("CALFBOX_AS_MODULE", "1")],
85 undef_macros
=['NDEBUG'],
86 depends
= ['setup.py']