From 991672d4230290fab3567c62328d3da7825f8a3b Mon Sep 17 00:00:00 2001 From: Job Evers-Meltzer Date: Tue, 16 Aug 2016 13:16:25 -0500 Subject: [PATCH] move pyobj building earlier --- packaging/osx/lbry-osx-app/setup_app.sh | 42 ++++++++++++------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/packaging/osx/lbry-osx-app/setup_app.sh b/packaging/osx/lbry-osx-app/setup_app.sh index d99a7b9ef..0d3db1478 100755 --- a/packaging/osx/lbry-osx-app/setup_app.sh +++ b/packaging/osx/lbry-osx-app/setup_app.sh @@ -9,7 +9,27 @@ ON_TRAVIS=false rm -rf build dist LBRY.app -pip install wheel dmgbuild jsonrpc +MODULES="pyobjc-core pyobjc-framework-Cocoa pyobjc-framework-CFNetwork pyobjc-framework-Quartz" +if [ ${ON_TRAVIS} = true ]; then + WHEEL_DIR="${TRAVIS_BUILD_DIR}/cache/wheel" + mkdir -p "${WHEEL_DIR}" + # mapping from the package name to the + # actual built wheel file is surprisingly + # hard so instead of checking for the existance + # of each wheel, we mark with a file when they've all been + # built and skip when that file exists + for MODULE in ${MODULES}; do + if [ ! -f "${WHEEL_DIR}"/${MODULE}.finished ]; then + pip wheel -w "${WHEEL_DIR}" ${MODULE} + touch "${WHEEL_DIR}"/${MODULE}.finished + fi + done + pip install "${WHEEL_DIR}"/*.whl +else + pip install $MODULES +fi + +pip install wheel dmgbuild jsonrpc certifi which dmgbuild dmgbuild --help @@ -51,26 +71,6 @@ codesign -s "${LBRY_DEVELOPER_ID}" -f "${DEST}/dist/LBRYURIHandler.app/Contents/ codesign --deep -s "${LBRY_DEVELOPER_ID}" -f "${DEST}/dist/LBRYURIHandler.app/Contents/MacOS/LBRYURIHandler" codesign -vvvv "${DEST}/dist/LBRYURIHandler.app" -pip install certifi -MODULES="pyobjc-core pyobjc-framework-Cocoa pyobjc-framework-CFNetwork" -if [ ${ON_TRAVIS} = true ]; then - WHEEL_DIR="${TRAVIS_BUILD_DIR}/cache/wheel" - mkdir -p "${WHEEL_DIR}" - # mapping from the package name to the - # actual built wheel file is surprisingly - # hard so instead of checking for the existance - # of each wheel, we mark with a file when they've all been - # built and skip when that file exists - if [ ! -f "${WHEEL_DIR}"/finished ]; then - pip wheel -w "${WHEEL_DIR}" ${MODULES} - touch "${WHEEL_DIR}"/finished - fi - pip install "${WHEEL_DIR}"/*.whl -else - pip install $MODULES -fi - - # add lbrycrdd as a resource. Following # http://stackoverflow.com/questions/11370012/can-executables-made-with-py2app-include-other-terminal-scripts-and-run-them # LBRYCRDD_URL="$(curl https://api.github.com/repos/lbryio/lbrycrd/releases/latest | grep 'browser_download_url' | grep osx | cut -d'"' -f4)"