Commit 2dc162a5 authored by Yves Gesnel's avatar Yves Gesnel
Browse files

Version mac : ajout d’un hack dans setup.py pour la nouvelle arborescence

parent b3e0b852
......@@ -92,7 +92,7 @@ def _mac_opt():
'gettext', 'sets', '_threading_local', 'glob',
'base64', 'locale', 'sre', 'bdb', 'optparse.',
'ssl', 'calendar', 'pdb', 'stringprep', 'cmd',
'pkg_resources' 'tempfile','copy', 'pkgutil',
'pkg_resources' 'tempfile','copy',
'textwrap', 'difflib', 'platform', 'threading',
'dummy_thread', 'plistlib', 'quopri', 'fnmatch',
'pprint']
......@@ -180,7 +180,6 @@ setup(
# python packages
packages = find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
# dependencies
provides = ["pyromaths"],
# platform-specific options
......@@ -200,3 +199,8 @@ 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.chdir("dist/Pyromaths.app/Contents/Resources/lib/python2.7/pyromaths/")
os.system("rm -r *.pyc classes/*.pyc ex/*.pyc ex/sixiemes/*.pyc ex/cinquiemes/*.pyc ex/quatriemes/*.pyc ex/troisiemes/*.pyc ex/lycee/*.pyc ex/examples outils/*.pyc")
\ 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