0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
posthog/bin/install-macosx_arm64

17 lines
460 B
Bash
Executable File

#!/bin/bash
# Install scripts for M1 Macs
# See https://github.com/PostHog/posthog/issues/2916
# NB: use cryptography==3.4.7
# Set ld flags to use OpenSSL installed with brew
export LDFLAGS="-L$(brew --prefix openssl)/lib"
export CPPFLAGS="-I$(brew --prefix openssl)/include"
# Use system OpenSSL instead of BoringSSL for GRPC
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
pip cache purge
pip install -r requirements.txt