forked from ChrisCummins/phd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env
More file actions
executable file
·21 lines (18 loc) · 739 Bytes
/
.env
File metadata and controls
executable file
·21 lines (18 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#
# This script sets up the shell environment for this project.
#
# Usage:
# $ source .env
# realpath requires GNU coreutils on macOS.
export PHD="$(realpath $(dirname "$0") 2>/dev/null)"
if [[ -f "$HOME/.cache/phd/tools/py/venv/phd/bin/activate" ]]; then
# If there is a virtualenv, use it. Note that even if it does exist, bazel
# will go ahead and ignore it, so we still need to rely on the system python
# being the required version.
. "$HOME/.cache/phd/tools/py/venv/phd/bin/activate"
fi
# Note(github.com/ChrisCummins/phd/issues/55): On macOS, custom LDFLAGS and
# CPPFLAGS are required to pip build MySQLdb:
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"