Commit 700dd1fb authored by Jérôme Ortais's avatar Jérôme Ortais
Browse files

Merge branch 'develop' of ssh://pyromaths.org:7422/pyromaths into develop

Conflicts:
	setup.py
parents 962b6112 508bd444
......@@ -192,6 +192,8 @@ app: version data/qtmac_fr.qm
QtCore.framework/QtCore QtGui.framework/QtGui
cd $(APP)/Frameworks/Python.framework/Versions/2.* &&\
rm -rf include lib Resources
rm -rf $(APP)/Resources/lib/python2.7/pyromaths.ex/examples
find $(APP)/Resources/lib/python2.7/pyromaths.ex \( -name '*.pyc' \) -delete
# ..Remove all architectures but x86_64..."
ditto --rsrc --arch x86_64 --hfsCompression $(DIST)/Pyromaths.app $(DIST)/Pyromaths-x86_64.app
......
......@@ -109,6 +109,7 @@ def _mac_opt():
py2app = dict(plist = plist,
iconfile = 'data/images/pyromaths.icns',
includes = ['gzip'],
packages = ['pyromaths.ex'],
excludes = excludes,
argv_emulation = True,
)
......@@ -228,8 +229,3 @@ if "py2app" in sys.argv:
PWD=$(dirname "$0"); /usr/bin/env PATH="$PATH:%s" $PWD/pyromaths''' % path)
os.system("chmod +x dist/Pyromaths.app/Contents/MacOS/setenv.sh")
os.system("sed -i '' '23s/pyromaths/setenv.sh/' dist/Pyromaths.app/Contents/Info.plist")
# hack to add dependencies that cannot be found
os.system("cp -r src/pyromaths dist/Pyromaths.app/Contents/Resources/lib/python2.7")
os.system("find dist/Pyromaths.app/Contents/Resources/lib/python2.7/pyromaths/ \( -name '*.pyc' \) -delete")
os.system("rm -r dist/Pyromaths.app/Contents/Resources/lib/python2.7/pyromaths/ex/examples")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment