diff options
author | Andrew W Elble <aweits@rit.edu> | 2020-04-06 20:21:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 19:21:16 -0500 |
commit | 26a754c023b72de6507b13540703d4a6a98385f4 (patch) | |
tree | 73375dc872254a3385e121faae624ef8e0b93cef /var | |
parent | 379319ee2d314e400da86e3b2cdfe1983a80f788 (diff) | |
download | spack-26a754c023b72de6507b13540703d4a6a98385f4.tar.gz spack-26a754c023b72de6507b13540703d4a6a98385f4.tar.bz2 spack-26a754c023b72de6507b13540703d4a6a98385f4.tar.xz spack-26a754c023b72de6507b13540703d4a6a98385f4.zip |
new package: py-tensorboard-plugin-wit (#15898)
* new package: py-tensorboard-plugin-wit
dependency for py-tensorboard >= 2.2.0
* incorporate feedback
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-tensorboard-plugin-wit/package.py | 63 |
1 files changed, 63 insertions, 0 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 new file mode 100644 index 0000000000..bb56b8c7d6 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-tensorboard-plugin-wit/package.py @@ -0,0 +1,63 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + + +class PyTensorboardPluginWit(Package): + """The What-If Tool makes it easy to efficiently and + intuitively explore up to two models' performance + on a dataset. Investigate model performances for + a range of features in your dataset, optimization + strategies and even manipulations to individual + datapoint values. All this and more, in a visual way + that requires minimal code.""" + + homepage = "https://pypi.python.org/project/tensorboard-plugin-wit" + git = "https://github.com/pair-code/what-if-tool.git" + + version('master', branch='master') + depends_on('bazel@0.26.1:', 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') + + extends('python') + + phases = ['setup', 'build', 'install'] + + def setup_build_environment(self, env): + tmp_path = '/tmp/spack/tb-plugin' + mkdirp(tmp_path) + env.set('TEST_TMPDIR', tmp_path) + + def setup(self, spec, prefix): + builddir = join_path(self.stage.source_path, 'spack-build') + mkdirp(builddir) + filter_file(r'dest=.*', + 'dest="{0}"'.format(builddir), + 'tensorboard_plugin_wit/pip_package/build_pip_package.sh') + filter_file(r'pip install .*', + ''.format(builddir), + 'tensorboard_plugin_wit/pip_package/build_pip_package.sh') + filter_file(r'command \-v .*', + ''.format(builddir), + 'tensorboard_plugin_wit/pip_package/build_pip_package.sh') + filter_file(r'virtualenv venv', + ''.format(builddir), + 'tensorboard_plugin_wit/pip_package/build_pip_package.sh') + + def build(self, spec, prefix): + tmp_path = env['TEST_TMPDIR'] + bazel('--nohome_rc', + '--nosystem_rc', + '--output_user_root=' + tmp_path, + 'run', + '--verbose_failures', + '--subcommands=pretty_print', + 'tensorboard_plugin_wit/pip_package:build_pip_package') + + def install(self, spec, prefix): + with working_dir('spack-build/release'): + setup_py('install', '--prefix={0}'.format(prefix), + '--single-version-externally-managed', '--root=/') |