summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-tensorboard/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/py-tensorboard/package.py')
-rw-r--r--var/spack/repos/builtin/packages/py-tensorboard/package.py30
1 files changed, 28 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/py-tensorboard/package.py b/var/spack/repos/builtin/packages/py-tensorboard/package.py
index 251f759b5f..3ce199fb6f 100644
--- a/var/spack/repos/builtin/packages/py-tensorboard/package.py
+++ b/var/spack/repos/builtin/packages/py-tensorboard/package.py
@@ -12,6 +12,9 @@ class PyTensorboard(Package):
homepage = "https://pypi.python.org/project/tensorboard"
url = "https://github.com/tensorflow/tensorboard/archive/2.2.0.tar.gz"
+ maintainers = ['aweits']
+
+ version('2.3.0', sha256='947a58702c2841eb4559637dbf8639633f79de9a0f422be9737f3563a1725440')
version('2.2.0', sha256='d0dfbf0e4b3b5ebbc3fafa6d281d4b9aa5478eac6bac3330652ab6674278ab77')
depends_on('python@2.7:2.8,3.2:', type=('build', 'run'))
@@ -21,7 +24,8 @@ class PyTensorboard(Package):
depends_on('py-markdown@2.6.8:', type=('build', 'run'))
depends_on('py-requests@2.21.0:2.999', type=('build', 'run'))
depends_on('py-futures@3.1.1:', type=('build', 'run'), when='^python@:2')
- depends_on('py-grpcio@1.23.3:', type=('build', 'run'))
+ depends_on('py-grpcio@1.24.3:', type=('build', 'run'), when='@2.3.0')
+ depends_on('py-grpcio@1.23.3:', type=('build', 'run'), when='@2.2.0')
depends_on('py-google-auth@1.6.3:1.99.99', type=('build', 'run'))
depends_on('py-numpy@1.12.0:', type=('build', 'run'))
depends_on('py-protobuf@3.6.0:', type=('build', 'run'))
@@ -31,12 +35,23 @@ class PyTensorboard(Package):
depends_on('py-wheel@0.26:', type='build', when='@0.6: ^python@3:')
depends_on('py-google-auth-oauthlib@0.4.1:0.4.999', type=('build', 'run'))
depends_on('py-tensorboard-plugin-wit@1.6.0:', type=('build', 'run'), when='@2.2.0:')
- depends_on('py-tensorflow-estimator', type='run')
+ depends_on('py-tensorflow-estimator@2.2.0', type='run', when='@2.2.0')
+ depends_on('py-tensorflow-estimator@2.3.0', type='run', when='@2.3.0')
extends('python')
+ patch('tboard_shellenv.patch')
+
phases = ['configure', 'build', 'install']
+ def patch(self):
+ filter_file('build --define=angular_ivy_enabled=True',
+ 'build --define=angular_ivy_enabled=True\n'
+ 'build --distinct_host_configuration=false\n'
+ 'build --action_env=PYTHONPATH="{0}"\n'.format(
+ env['PYTHONPATH']),
+ '.bazelrc')
+
def setup_build_environment(self, env):
tmp_path = '/tmp/spack/tb'
mkdirp(tmp_path)
@@ -48,6 +63,15 @@ class PyTensorboard(Package):
filter_file(r'workdir=.*',
'workdir="{0}"'.format(builddir),
'tensorboard/pip_package/build_pip_package.sh')
+ filter_file(r'pip install .*',
+ '',
+ 'tensorboard/pip_package/build_pip_package.sh')
+ filter_file(r'command \-v .*',
+ '',
+ 'tensorboard/pip_package/build_pip_package.sh')
+ filter_file(r'virtualenv .*',
+ '',
+ 'tensorboard/pip_package/build_pip_package.sh')
filter_file('trap cleanup EXIT',
'',
'tensorboard/pip_package/build_pip_package.sh')
@@ -59,6 +83,8 @@ class PyTensorboard(Package):
'--output_user_root=' + tmp_path,
'build',
'--verbose_failures',
+ '--spawn_strategy=local',
+ '--subcommands=pretty_print',
'//tensorboard/pip_package')
def install(self, spec, prefix):