Ivo Stoyanov
01/28/2022, 5:51 PMmax
01/28/2022, 5:54 PMalex
01/28/2022, 5:58 PMIvo Stoyanov
01/28/2022, 6:03 PMalex
01/28/2022, 6:27 PMexport GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
pip install dagit
Worked for me - I have separate homebrew
installs for arm and x86 and have ensured the compilation flags are set to point at brew installed openssl in both casesIvo Stoyanov
01/28/2022, 6:30 PMalex
01/28/2022, 6:58 PMarch_name="$(uname -m)"
if [ "${arch_name}" = "x86_64" ]; then
echo "Running in x86 mode"
eval $(/usr/local/bin/brew shellenv)
elif [ "${arch_name}" = "arm64" ]; then
echo "Running in Arm mode"
eval $(/opt/homebrew/bin/brew shellenv)
else
echo "Unexpected uname -m result ${arch_name}"
fi
# brew libraries
export LDFLAGS="-L $(brew --prefix openssl)/lib"
export CFLAGS="-I $(brew --prefix openssl)/include"
Ivo Stoyanov
01/28/2022, 7:04 PMDagster install
X86/rosetta brew Install
See
<https://www.wisdomgeek.com/development/installing-intel-based-packages-using-homebrew-on-the-m1-mac/>
In x86 terminal
brew install zlib
brew install openssl
python3.9 -m venv vent
source venv/bin/activate
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
# For compilers to find openssl@3 you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl@3/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@3/include"
export CFLAGS="-I/usr/local/opt/openssl@3/include"
# For pkg-config to find openssl@3 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig"
python -m pip cache purge
pip install wheel
pip install dagster
pip install dagit