Skip to content

Instantly share code, notes, and snippets.

@johntyree
Created September 24, 2009 15:26
Show Gist options
  • Save johntyree/192804 to your computer and use it in GitHub Desktop.
Save johntyree/192804 to your computer and use it in GitHub Desktop.
from distutils import core
# For side effects!
import py2exe
from py2exe import build_exe
class Py2exeCommand(build_exe.py2exe):
def get_hidden_imports(self):
d = build_exe.py2exe.get_hidden_imports(self)
d.setdefault('gtk._gtk', []).extend([
'cairo', 'pango', 'pangocairo', 'atk'])
return d
core.setup(
name = "Traduisons!",
description = "A front-end to Google Translate.",
version = "0.2.5",
windows = [
{"script": "traduisons.py",
"icon_resources": [(1, "traduisons_icon.ico")]
}
],
options = {
'py2exe': {
'packages': 'simplejson',
},
},
datafiles = [
('images', "google-small-logo.png"),
],
cmdclass={
'py2exe': Py2exeCommand,
},
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment