Skip to content

Commit

Permalink
Avoid imports from current working dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Apr 11, 2017
1 parent 210c475 commit 57748ca
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/macos/build-macos-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,12 @@ m4 -D__VERSION__="${VERSION:?}" "${APPDIR}"/Contents/Info.plist.in \
> "${APPDIR}"/Contents/Info.plist

# Sanity check
"${PYTHON}" -m pip install --no-cache-dir --no-index orange3 PyQt5
"${PYTHON}" -m Orange.canvas --help > /dev/null
(
# run from an empty dir to avoid importing/finding any packages on ./
tempdir=$(mktemp -d)
cleanup() { rm -r "${tempdir}"; }
trap cleanup EXIT
cd "${tempdir}"
"${PYTHON}" -m pip install --no-cache-dir --no-index orange3 PyQt5
"${PYTHON}" -m Orange.canvas --help > /dev/null
)

0 comments on commit 57748ca

Please sign in to comment.