diff options
author | Justine Tunney <jart@google.com> | 2016-10-20 16:48:45 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-10-20 18:04:26 -0700 |
commit | 1dba78b997dc49df9df663a838e0bacd6602f5b8 (patch) | |
tree | adb3cfe86b348eb81210291f7ebe431dce971915 /configure | |
parent | 2da2ae76cfa782474e8662234f89ddeecd080e05 (diff) |
Automatically build SWIG from source
This change allows Bazel to fetch and build SWIG rather than getting it
from the system. This change also improves the i/o performance of the
SWIG build, makes it hermetically sealed, and ensures tf_py_wrap_cc()
can function correctly across Bazel repositories.
CC: #4983
Change: 136783531
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -107,20 +107,6 @@ else perl -pi -e "s,WITH_HDFS_SUPPORT = (False|True),WITH_HDFS_SUPPORT = False,s" tensorflow/core/platform/default/build_config.bzl fi -## Find swig path -if [ -z "$SWIG_PATH" ]; then - SWIG_PATH=`type -p swig 2> /dev/null || true` -fi -if [[ ! -e "$SWIG_PATH" ]]; then - echo "Can't find swig. Ensure swig is in \$PATH or set \$SWIG_PATH." - exit 1 -fi -# Convert swig path to Windows style before writing into swig_path -if is_windows; then - SWIG_PATH="$(cygpath -m "$SWIG_PATH")" -fi -echo "$SWIG_PATH" > tensorflow/tools/swig/swig_path - # Invoke python_config and set up symlinks to python includes ./util/python/python_config.sh --setup "$PYTHON_BIN_PATH" |