mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-30 19:41:46 +01:00
17 lines
460 B
Bash
Executable File
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
|