fix osx build on python2.7/qt4.7

will roll this back if there are problems with the cocoa port
This commit is contained in:
Damien Elmes 2010-10-23 14:01:08 +09:00
parent 2264703db9
commit b53736167a
3 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash
PYTHON=/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
PYTHON=/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
if [ "x$debug" = "x" ]; then
echo "cleaning up..."

Binary file not shown.

View file

@ -28,11 +28,11 @@ class bdist_dmg(Command):
def run(self):
self.run_command('py2app')
os.system("\
mkdir -p dist/Anki.app/Contents/Resources/include/python2.6")
mkdir -p dist/Anki.app/Contents/Resources/include/python2.7")
os.system("\
cp /Library/Frameworks/Python.framework/Versions/2.6/include/\
python2.6/pyconfig.h dist/Anki.app/Contents/Resources/include/\
python2.6/pyconfig.h")
cp /Library/Frameworks/Python.framework/Versions/2.7/include/\
python2.7/pyconfig.h dist/Anki.app/Contents/Resources/include/\
python2.7/pyconfig.h")
os.system("\
chmod a+x dist/Anki.app/Contents/Resources/audio/mplayer")
if 'debug' in os.environ:
@ -61,7 +61,7 @@ PLIST = dict(
CFBundleLocalizations = ['en'],
)
OPTIONS = {
'argv_emulation': True,
'argv_emulation': False,
'optimize': 0,
'alias': 'debug' in os.environ and os.environ['debug'] == "2",
'plist': PLIST,