mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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:
parent
2264703db9
commit
b53736167a
3 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/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
|
if [ "x$debug" = "x" ]; then
|
||||||
echo "cleaning up..."
|
echo "cleaning up..."
|
||||||
|
|
Binary file not shown.
10
mac/setup.py
10
mac/setup.py
|
@ -28,11 +28,11 @@ class bdist_dmg(Command):
|
||||||
def run(self):
|
def run(self):
|
||||||
self.run_command('py2app')
|
self.run_command('py2app')
|
||||||
os.system("\
|
os.system("\
|
||||||
mkdir -p dist/Anki.app/Contents/Resources/include/python2.6")
|
mkdir -p dist/Anki.app/Contents/Resources/include/python2.7")
|
||||||
os.system("\
|
os.system("\
|
||||||
cp /Library/Frameworks/Python.framework/Versions/2.6/include/\
|
cp /Library/Frameworks/Python.framework/Versions/2.7/include/\
|
||||||
python2.6/pyconfig.h dist/Anki.app/Contents/Resources/include/\
|
python2.7/pyconfig.h dist/Anki.app/Contents/Resources/include/\
|
||||||
python2.6/pyconfig.h")
|
python2.7/pyconfig.h")
|
||||||
os.system("\
|
os.system("\
|
||||||
chmod a+x dist/Anki.app/Contents/Resources/audio/mplayer")
|
chmod a+x dist/Anki.app/Contents/Resources/audio/mplayer")
|
||||||
if 'debug' in os.environ:
|
if 'debug' in os.environ:
|
||||||
|
@ -61,7 +61,7 @@ PLIST = dict(
|
||||||
CFBundleLocalizations = ['en'],
|
CFBundleLocalizations = ['en'],
|
||||||
)
|
)
|
||||||
OPTIONS = {
|
OPTIONS = {
|
||||||
'argv_emulation': True,
|
'argv_emulation': False,
|
||||||
'optimize': 0,
|
'optimize': 0,
|
||||||
'alias': 'debug' in os.environ and os.environ['debug'] == "2",
|
'alias': 'debug' in os.environ and os.environ['debug'] == "2",
|
||||||
'plist': PLIST,
|
'plist': PLIST,
|
||||||
|
|
Loading…
Reference in a new issue