Ensure PKG_CONFIG_PATH is set, so we can create a MacOS app bundle
This commit is contained in:
parent
acba932b46
commit
fb2bf0b147
15
venv
15
venv
@ -10,6 +10,14 @@
|
||||
#
|
||||
|
||||
|
||||
# If on Macos with brew, make sure we can find the brewed libffi (which is not "linked"):
|
||||
echo "Are we on Macos with Homebrew installed?"
|
||||
brew --version >/dev/null 2>&1 && {
|
||||
libffi_path="$(brew ls libffi | grep pkgconfig | xargs dirname)"
|
||||
echo "Adding libffi pkg-config path ${libffi_path} to \$PKG_CONFIG_PATH"
|
||||
export PKG_CONFIG_PATH="${libffi_path}:${PKG_CONFIG_PATH:-}"
|
||||
}
|
||||
|
||||
(
|
||||
# Do the whole installation process in a sub-shell, so we can safely fail when
|
||||
# this file is sourced in the parent shell.
|
||||
@ -31,13 +39,6 @@
|
||||
esac
|
||||
done
|
||||
|
||||
# If on Macos with brew, make sure we can find the brewed libffi (which is not "linked"):
|
||||
check brew --version && {
|
||||
libffi_path="$(brew ls libffi | grep pkgconfig | xargs dirname)"
|
||||
echo "Adding libffi pkg-config path ${libffi_path} to \$PKG_CONFIG_PATH"
|
||||
export PKG_CONFIG_PATH="${libffi_path}:${PKG_CONFIG_PATH:-}"
|
||||
}
|
||||
|
||||
check python3 --version || {
|
||||
echo "==> Python 3.x not found"
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user