|
@@ -113,6 +113,10 @@ install-py-dev() {
|
|
|
# This saves having to install postgresql on the Developer's machine + using flags
|
|
|
# https://github.com/psycopg/psycopg2/issues/1286
|
|
|
pip install https://storage.googleapis.com/python-arm64-wheels/psycopg2_binary-2.8.6-cp38-cp38-macosx_11_0_arm64.whl
|
|
|
+ # The CPATH is needed for confluent-kakfa --> https://github.com/confluentinc/confluent-kafka-python/issues/1190
|
|
|
+ export CPATH="$(brew --prefix librdkafka)/include"
|
|
|
+ # The LDFLAGS is needed for uWSGI --> https://github.com/unbit/uwsgi/issues/2361
|
|
|
+ export LDFLAGS="-L$(brew --prefix gettext)/lib"
|
|
|
fi
|
|
|
|
|
|
# SENTRY_LIGHT_BUILD=1 disables webpacking during setup.py.
|
|
@@ -133,30 +137,6 @@ patch-selenium() {
|
|
|
fi
|
|
|
}
|
|
|
|
|
|
-setup-apple-m1() {
|
|
|
- ! query-apple-m1 && return
|
|
|
-
|
|
|
- zshrc_path="${HOME}/.zshrc"
|
|
|
- header="# Apple M1 environment variables"
|
|
|
- # The CPATH is needed for confluent-kakfa --> https://github.com/confluentinc/confluent-kafka-python/issues/1190
|
|
|
- # The LDFLAGS is needed for uWSGI --> https://github.com/unbit/uwsgi/issues/2361
|
|
|
- body="
|
|
|
-$header
|
|
|
-export CPATH=/opt/homebrew/Cellar/librdkafka/1.8.2/include
|
|
|
-export LDFLAGS=-L/opt/homebrew/Cellar/gettext/0.21/lib"
|
|
|
- if [ "$SHELL" == "/bin/zsh" ]; then
|
|
|
- if ! grep -qF "${header}" "${zshrc_path}"; then
|
|
|
- echo "Added the following to ${zshrc_path}"
|
|
|
- cp "${zshrc_path}" "${zshrc_path}.bak"
|
|
|
- echo -e "$body" >> "${zshrc_path}"
|
|
|
- echo -e "$body"
|
|
|
- fi
|
|
|
- else
|
|
|
- echo "You are not using a supported shell. Please add these variables where appropiate."
|
|
|
- echo -e "$body"
|
|
|
- fi
|
|
|
-}
|
|
|
-
|
|
|
setup-git-config() {
|
|
|
git config --local branch.autosetuprebase always
|
|
|
git config --local core.ignorecase false
|
|
@@ -236,7 +216,6 @@ build-platform-assets() {
|
|
|
}
|
|
|
|
|
|
bootstrap() {
|
|
|
- setup-apple-m1
|
|
|
develop
|
|
|
init-config
|
|
|
run-dependent-services
|