Commit 508bd444 authored by Yves Gesnel's avatar Yves Gesnel
Browse files

Version mac : amélioration de setup.py et mise à jour de Makefile

parent 6fcbe567
......@@ -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
......
......@@ -101,6 +101,7 @@ def _mac_opt():
py2app = dict(plist = plist,
iconfile = 'data/images/pyromaths.icns',
includes = ['gzip'],
packages = ['pyromaths.ex'],
excludes = excludes,
argv_emulation = True,
)
......@@ -199,8 +200,4 @@ 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")
\ No newline at end of file
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