shutil.copyfile(os.path.join(this_dir, '..\\..\\bin\\Python%d%d\\my.pyd' %
    sys.version_info[0:2]), self.get_ext_fullpath(ext.name))
setup_args['cmdclass'] = {'build_ext': my_build_ext}
setup(**setup_args)
Distribute pre-compiled python extension module with distutils