I have a foo.yac file and need to run yacc and flex inside setup.py to create the corresponding C file before it can get compiled by DistUtils. What is the best way perform that task with DistUtils. I have seen some automatism for SWIG .i files but nothing for .yac files. Andreas