Fix automatic to-string conversion for status objects.
[calfbox.git] / setup.py
blobed7da15433350ea221ffc5c44f542a5e3e1deba1
1 #!/usr/bin/env python3
3 from distutils.core import setup, Extension
4 import glob
5 import os
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()
13 libs.append("-luuid")
15 csources = [
16 "app.c",
17 "auxbus.c",
18 "blob.c",
19 "chorus.c",
20 "cmd.c",
21 "compressor.c",
22 "config-api.c",
23 "delay.c",
24 "distortion.c",
25 "dom.c",
26 "eq.c",
27 "engine.c",
28 "errors.c",
29 "fbr.c",
30 "fluid.c",
31 "fuzz.c",
32 "fxchain.c",
33 "gate.c",
34 "hwcfg.c",
35 "instr.c",
36 "io.c",
37 "jackinput.c",
38 "jackio.c",
39 "layer.c",
40 "master.c",
41 "meter.c",
42 "midi.c",
43 "mididest.c",
44 "module.c",
45 "pattern.c",
46 "pattern-maker.c",
47 "phaser.c",
48 "recsrc.c",
49 "reverb.c",
50 "rt.c",
51 "sampler.c",
52 "sampler_gen.c",
53 "sampler_layer.c",
54 "sampler_prg.c",
55 "scene.c",
56 "scripting.c",
57 "seq.c",
58 "sfzloader.c",
59 "sfzparser.c",
60 "song.c",
61 "streamplay.c",
62 "streamrec.c",
63 "tonectl.c",
64 "tonewheel.c",
65 "track.c",
66 "usbaudio.c",
67 "usbio.c",
68 "usbmidi.c",
69 "usbprobe.c",
70 "wavebank.c"
73 setup(name="CalfBox",
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",
77 packages=["calfbox"],
78 package_dir={'calfbox':'py'},
79 ext_modules=[
80 Extension('_cbox', csources,
81 extra_compile_args = eargs,
82 include_dirs=['.'],
83 extra_link_args=libs,
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']