tmp_dlls.append(os.path.join(cdir, dll))
for dll in gtk_dlls:
    shutil.copy(dll, cdir)
setup(windows=['main.py'], options={'py2exe': {'includes': ['gi'],
    'packages': ['gi']}})
dest_dir = os.path.join(cdir, 'dist')
if not os.path.exists(dest_dir):
    os.makedirs(dest_dir)
for dll in tmp_dlls:
    shutil.copy(dll, dest_dir)
os.remove(dll)
for d in gtk_dirs_to_include:
    shutil.copytree(os.path.join(site_dir, 'gnome', d), os.path.join(
        dest_dir, d))
Создание установщика для приложения Python GTK3