##// END OF EJS Templates
Updated OSX build with Python bundled inside SciQLop and also stick to Meson 0.49.1...
jeandet -
r1453:157b5409d318
parent child
Show More
@@ -0,0 +1,3
1 #!/bin/bash
2 HERE=$( cd "$(dirname "$0")" ; pwd -P )
3 PYTHONPATH=$HERE/../../lib/python3.7/:$HERE/../../lib/python3.7/site-packages/ LD_PRELOAD=$HERE/../../.Python $HERE/sciqlop
@@ -13,7 +13,7
13 13 <key>CFBundleSignature</key>
14 14 <string>????</string>
15 15 <key>CFBundleExecutable</key>
16 <string>SciQLOP</string>
16 <string>SciQLOP_wrapper</string>
17 17 <key>CFBundleIdentifier</key>
18 18 <string>com.lpp.SciQLOP</string>
19 19 <key>NOTE</key>
@@ -1,8 +1,14
1 1 #!/bin/bash
2
2 # On OS X only 0.49.1 works :(
3 pip3 install --upgrade --user meson==0.49.1
4 HERE=$( cd "$(dirname "$0")" ; pwd -P )
3 5 mkdir build
4 meson -Dcpp_args='-DQT_STATICPLUGIN' -Ddefault_library=static --prefix=/tmp/SciQLOP.app --bindir=Contents/MacOS build
6 ~/Library/Python/3.7/bin/meson -Dcpp_args='-DQT_STATICPLUGIN' -Ddefault_library=static --prefix=/tmp/SciQLOP.app --bindir=Contents/MacOS build
5 7 cd build
6 8 ninja
7 9 ninja install
8
10 ~/Library/Python/3.7/bin/virtualenv --always-copy /tmp/SciQLOP.app
11 ~/Library/Python/3.7/bin/virtualenv --relocatable /tmp/SciQLOP.app
12 /tmp/SciQLOP.app/bin/pip install git+https://github.com/jeandet/spwc
13 cp $HERE/SciQLOP_wrapper /tmp/SciQLOP.app/Contents/MacOS/
14 chmod +x /tmp/SciQLOP.app/Contents/MacOS/SciQLOP_wrapper
@@ -2,7 +2,7
2 2
3 3 mkdir -p ${MESON_INSTALL_PREFIX}/Contents/Frameworks
4 4 mv ${MESON_INSTALL_PREFIX}/lib/*plugin* ${MESON_INSTALL_PREFIX}/Contents/MacOS
5 macdeployqt ${MESON_INSTALL_PREFIX} -verbose=3
5 macdeployqt ${MESON_INSTALL_PREFIX} -verbose=3 -executable=/tmp/SciQLOP.app/Contents/MacOS/sciqlop
6 6 install_name_tool -change @rpath/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore /tmp/SciQLOP.app/Contents/MacOS/sciqlop
7 7 install_name_tool -change @rpath/QtPrintSupport.framework/Versions/5/QtPrintSupport @executable_path/../Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport /tmp/SciQLOP.app/Contents/MacOS/sciqlop
8 8 install_name_tool -change @rpath/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui /tmp/SciQLOP.app/Contents/MacOS/sciqlop
General Comments 0
You need to be logged in to leave comments. Login now