ref: 228e8d80880f3258ed2ae5637afe3338eba76708
dir: /interfaces/python/setup.py/
from distutils.core import setup, Extension from os import listdir generated_files = listdir('generated') generated_files = filter(lambda x: x.endswith('.c'), generated_files) generated_files = ['generated/'+f for f in generated_files] setup(name="_aubio", version="1.0", ext_modules = [ Extension("_aubio", ["aubiomodule.c", "aubioproxy.c", "py-cvec.c", # example without macro "py-filter.c", # macroised "py-filterbank.c", "py-fft.c", "py-phasevoc.c", # generated files ] + generated_files, include_dirs=['../../build/default/src', '../../src', '.' ], library_dirs=['../../build/default/src', '../../src/.libs' ], libraries=['aubio'])])