~ubuntu-branches/ubuntu/lucid/anki/lucid-updates

« back to all changes in this revision

Viewing changes to mac/setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Mackenzie Morgan
  • Date: 2010-05-31 15:55:50 UTC
  • mfrom: (7.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100531155550-wj3tag8bvp6fwhpo
Tags: 0.9.9.8.6-2~lucid1
Backport from maverick to fix FTBFS (LP: #550145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
        def run(self):
29
29
                self.run_command('py2app')
 
30
                os.system("\
 
31
mkdir -p dist/Anki.app/Contents/Resources/include/python2.6")
 
32
                os.system("\
 
33
cp /Library/Frameworks/Python.framework/Versions/2.6/include/\
 
34
python2.6/pyconfig.h dist/Anki.app/Contents/Resources/include/\
 
35
python2.6/pyconfig.h")
 
36
                os.system("\
 
37
chmod a+x dist/Anki.app/Contents/Resources/audio/mplayer")
30
38
                if 'debug' in os.environ:
31
39
                        return
32
40
                # zlib
43
51
#    'ankiqt',
44
52
    'libanki/anki/locale',
45
53
    'ankiqt/ankiqt/locale',
46
 
    'kakasi',
47
54
    'audio',
48
55
    'ankiqt/imageformats',
49
 
    'libanki/anki/features/chinese/unihan.db',
50
56
    ]
51
57
PLIST = dict(
52
58
        CFBundleIdentifier = 'net.ichi2.anki',
60
66
OPTIONS = {
61
67
        'argv_emulation': True,
62
68
    'optimize': 0,
63
 
        'alias': 'debug' in os.environ,
 
69
        'alias': 'debug' in os.environ and os.environ['debug'] == "2",
64
70
        'plist': PLIST,
65
71
        'iconfile': 'ankiqt/mac/anki.icns',
66
72
    "includes": ["sip", "cgi", "encodings", "encodings.utf_8",
67
73
                 "encodings.shift_jis", "_multibytecodec",
68
 
                 "PyQt4.QtNetwork"],
 
74
                 "PyQt4.QtNetwork", "platform"],
69
75
    'packages': ["sqlalchemy", "pysqlite2", "simplejson"],
70
76
    'excludes': ['_gtkagg', '_tkagg', "_wxagg",
71
77
                 "wx", "_wx",