py-tensorflow-probability: run install from correct working dir (#22175)

This commit is contained in:
Andrew W Elble 2021-03-08 10:58:08 -05:00 committed by GitHub
parent b642871b23
commit 16adb5dd8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,6 @@ class PyTensorflowProbability(Package):
url='https://github.com/tensorflow/probability/archive/0.8.0.tar.gz')
extends('python')
depends_on('py-setuptools', type='build')
depends_on('py-six@1.10.0:', type=('build', 'run'))
@ -76,6 +75,10 @@ def install(self, spec, prefix):
bazel(*args)
with working_dir(join_path('bazel-bin',
'pip_pkg.runfiles',
'tensorflow_probability')):
setup_py('install', '--prefix={0}'.format(prefix),
'--single-version-externally-managed', '--root=/')
remove_linked_tree(self.tmp_path)