py-tensorboard-data-server: fix build on Apple M1 (#30908)

This commit is contained in:
Adam J. Stewart 2022-06-20 01:12:32 -07:00 committed by GitHub
parent fd5b7d6cce
commit 9325c8e53f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,10 @@ class PyTensorboardDataServer(PythonPackage):
depends_on('py-setuptools', type='build')
depends_on('rust', type='build')
# https://github.com/tensorflow/tensorboard/issues/5713
patch('https://github.com/tensorflow/tensorboard/pull/5715.patch?full_index=1',
sha256='878bbd60fd9c38216a372792f02a65c1b422b6c546050fdf335b264ab263cd8a', when='@0.6.1')
def setup_build_environment(self, env):
env.set('CARGO_HOME', self.stage.source_path)