summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2021-07-22 07:31:40 -0500
committerGitHub <noreply@github.com>2021-07-22 05:31:40 -0700
commit537d3163112b0b2611813b035daad9565a6b5546 (patch)
tree02ad2a376decce4993bad07a5c4791cd89b0fe6b /var
parent7ad72de0d3a4da2088d9e37b0142e3e9f0ca142f (diff)
downloadspack-537d3163112b0b2611813b035daad9565a6b5546.tar.gz
spack-537d3163112b0b2611813b035daad9565a6b5546.tar.bz2
spack-537d3163112b0b2611813b035daad9565a6b5546.tar.xz
spack-537d3163112b0b2611813b035daad9565a6b5546.zip
py-tensorboard-plugin-wit: fix build on Ubuntu (#25025)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-tensorboard-plugin-wit/package.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-tensorboard-plugin-wit/package.py b/var/spack/repos/builtin/packages/py-tensorboard-plugin-wit/package.py
index cc6fce343a..74775535b0 100644
--- a/var/spack/repos/builtin/packages/py-tensorboard-plugin-wit/package.py
+++ b/var/spack/repos/builtin/packages/py-tensorboard-plugin-wit/package.py
@@ -25,7 +25,9 @@ class PyTensorboardPluginWit(Package):
version('1.8.0', sha256='1e4de1bbf6ae61c4d27b114ec2e1093bc4765b8c2bbb2cc5d43e2075b08a5fea')
version('1.7.0', sha256='30dcab9065b02c3f1476f4fb92b27f6feb6c00cdb281699c44d8e69c86745247')
- depends_on('bazel@:2.1.0', type='build')
+ # Bazel 3.7+ does not work
+ # https://github.com/PAIR-code/what-if-tool/issues/140
+ depends_on('bazel@0.26.1:3.6', type='build')
depends_on('py-setuptools@36.2.0:', type='build')
depends_on('python@2.7:2.8,3.2:', type=('build', 'run'))
depends_on('py-wheel', type='build')
@@ -34,6 +36,11 @@ class PyTensorboardPluginWit(Package):
patch('tboard_shellenv.patch')
+ # On Ubuntu, sh -> dash, and the script contains tools like pushd that require bash
+ patch('https://patch-diff.githubusercontent.com/raw/PAIR-code/what-if-tool/pull/154.patch',
+ sha256='b40fbc73fb07ed933f9d845b65fdbf7a94644f7ec7ca8637eda002171e71bbb6',
+ when='@:1.8.0')
+
phases = ['setup', 'build', 'install']
def setup_build_environment(self, env):