Copy metatdata_schema.fbs into PyPI packages.

PiperOrigin-RevId: 487685505
This commit is contained in:
Jiuqiang Tang 2022-11-10 17:46:57 -08:00 committed by Copybara-Service
parent 9f681d20e8
commit 849134cfce

View File

@ -307,6 +307,9 @@ class GenerateMetadataSchema(build_ext.build_ext):
_copy_to_build_lib_dir(
self.build_lib,
'mediapipe/tasks/metadata/' + target + '_generated.py')
schema_file = 'mediapipe/tasks/metadata/metadata_schema.fbs'
shutil.copyfile(schema_file,
os.path.join(self.build_lib + '/', schema_file))
class BazelExtension(setuptools.Extension):