aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/py
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-09-29 16:13:51 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-29 16:17:07 -0700
commit2538e68a69e585696175bd972cae119e06bde294 (patch)
tree1e5e59e7eaed3a70d23bde83c2c4313fe131ca8e /third_party/py
parent4cf1b45b2e9188086bcb7d12654cd3e130e9b823 (diff)
Remove workaround for symlinked headers.
PiperOrigin-RevId: 215083669
Diffstat (limited to 'third_party/py')
-rw-r--r--third_party/py/python_configure.bzl4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/py/python_configure.bzl b/third_party/py/python_configure.bzl
index 3c7e5c8469..53264630a1 100644
--- a/third_party/py/python_configure.bzl
+++ b/third_party/py/python_configure.bzl
@@ -130,8 +130,8 @@ def _symlink_genrule_for_dir(repository_ctx, src_dir, dest_dir, genrule_name,
# If we have only one file to link we do not want to use the dest_dir, as
# $(@D) will include the full path to the file.
dest = '$(@D)/' + dest_dir + dest_files[i] if len(dest_files) != 1 else '$(@D)/' + dest_files[i]
- # On Windows, symlink is not supported, so we just copy all the files.
- cmd = 'cp -f' if _is_windows(repository_ctx) else 'ln -s'
+ # Copy the headers to create a sandboxable setup.
+ cmd = 'cp -f'
command.append(cmd + ' "%s" "%s"' % (src_files[i] , dest))
outs.append(' "' + dest_dir + dest_files[i] + '",')
genrule = _genrule(src_dir, genrule_name, " && ".join(command),