aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar Justine Tunney <jart@google.com>2016-10-20 16:48:45 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-10-20 18:04:26 -0700
commit1dba78b997dc49df9df663a838e0bacd6602f5b8 (patch)
treeadb3cfe86b348eb81210291f7ebe431dce971915 /configure
parent2da2ae76cfa782474e8662234f89ddeecd080e05 (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-xconfigure14
1 files changed, 0 insertions, 14 deletions
diff --git a/configure b/configure
index 8f0a77dcae..dcdbff23b5 100755
--- a/configure
+++ b/configure
@@ -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"