Thanks for the help--- I put in the cmdclass only {build: my_build} since I don't have a my_build_py. It works great! Still it seems that everyone using Swig to create packages will either have to run setup twice, or put this code in. Thanks again, Dan Schult