-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch finally fixes a long-standing gripe that I have had with my build toolchain with the requirement to run a ./configure script. By removing the conditional TensorFlow GPU package, I finally feel ready to let go of this configuration script and the generated config.pbtxt. The last remaining piece of functionality ported over from ./configure is the recording of the workspace source path, which has been assimilated into build_info.pbtxt. github.com/ChrisCummins/phd/issues/73 Signed-off-by: format 2020.01.16 <github.com/ChrisCummins/format>
- Loading branch information
1 parent
3a10e66
commit 13a7967
Showing
9 changed files
with
33 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
# | ||
# This script sets up the shell environment for this project. | ||
# | ||
# Usage: | ||
# $ source .env | ||
|
||
export PHD="$(realpath $(dirname "$0"))" | ||
|
||
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" | ||
|
||
# Increase the timeout on docker image pulls from the default 600s. | ||
# See: https://github.com/bazelbuild/rules_docker | ||
export PULLER_TIMEOUT=3600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ sh_binary( | |
srcs = ["whoami.sh"], | ||
data = [ | ||
"//:build_info_pbtxt", | ||
"//:config", | ||
], | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
cat config.pbtxt | grep -v '^#' | ||
cat build_info.pbtxt | grep -v '^#' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters