<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: no</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Ubuntu 16.04</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: source</li>
<li><strong>TensorFlow version (use command below)</strong>: v1.3.1</li>
<li><strong>Python version</strong>: 3.5</li>
<li><strong>Bazel version (if compiling from source)</strong>: 0.6.0</li>
<li><strong>CUDA/cuDNN version</strong>:</li>
<li><strong>GPU model and memory</strong>:</li>
<li><strong>Exact command to reproduce</strong>: <code class="notranslate">bazel build //tensorflow/tools/pip_package:build_pip_package</code></li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">With bazel version 0.6.0, building on the latest stable tagged release (v1.3.1) is not possible. I get the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/8ea56cff279f39ec6c0003641e649819/external/io_bazel_rules_closure/closure/private/defs.bzl:27:16: The `set` constructor for depsets is deprecated and will be removed. Please use the `depset` constructor instead. You can temporarily enable the deprecated `set` constructor by passing the flag --incompatible_disallow_set_constructor=false
ERROR: error loading package '': Extension file 'closure/private/defs.bzl' has errors
ERROR: error loading package '': Extension file 'closure/private/defs.bzl' has errors
INFO: Elapsed time: 0.569s
FAILED: Build did NOT complete successfully (0 packages loaded)"><pre class="notranslate"><code class="notranslate">ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/8ea56cff279f39ec6c0003641e649819/external/io_bazel_rules_closure/closure/private/defs.bzl:27:16: The `set` constructor for depsets is deprecated and will be removed. Please use the `depset` constructor instead. You can temporarily enable the deprecated `set` constructor by passing the flag --incompatible_disallow_set_constructor=false
ERROR: error loading package '': Extension file 'closure/private/defs.bzl' has errors
ERROR: error loading package '': Extension file 'closure/private/defs.bzl' has errors
INFO: Elapsed time: 0.569s
FAILED: Build did NOT complete successfully (0 packages loaded)
</code></pre></div>
<p dir="auto">When I pass the flag mentioned in the error message (<code class="notranslate">--incompatible_disallow_set_constructor=false</code>) to the pip package build command, I get a similar message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/8ea56cff279f39ec6c0003641e649819/external/org_python_pypi_backports_weakref/BUILD.bazel:17:1: no such package '@org_python_license//': The `set` constructor for depsets is deprecated and will be removed. Please use the `depset` constructor instead. You can temporarily enable the deprecated `set` constructor by passing the flag --incompatible_disallow_set_constructor=false and referenced by '@org_python_pypi_backports_weakref//:license'
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted
INFO: Elapsed time: 0.626s
FAILED: Build did NOT complete successfully (28 packages loaded)
    currently loading: tensorflow/core"><pre class="notranslate"><code class="notranslate">ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/8ea56cff279f39ec6c0003641e649819/external/org_python_pypi_backports_weakref/BUILD.bazel:17:1: no such package '@org_python_license//': The `set` constructor for depsets is deprecated and will be removed. Please use the `depset` constructor instead. You can temporarily enable the deprecated `set` constructor by passing the flag --incompatible_disallow_set_constructor=false and referenced by '@org_python_pypi_backports_weakref//:license'
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted
INFO: Elapsed time: 0.626s
FAILED: Build did NOT complete successfully (28 packages loaded)
    currently loading: tensorflow/core
</code></pre></div>
<p dir="auto">This problem does not exist on <code class="notranslate">master</code>. It would be very useful to have even a tiny stable release (v1.3.2 or something) to include this fix for those of us that like to build against a stable release.</p>
<p dir="auto">Issue to trace effort of swig interface for java. Started implementation - will update with progress. If anyone has any comments/tips - please feel welcome to join the discussion!</p>