Copy metatdata_schema.fbs into PyPI packages.
PiperOrigin-RevId: 487685505
This commit is contained in:
parent
9f681d20e8
commit
849134cfce
3
setup.py
3
setup.py
|
@ -307,6 +307,9 @@ class GenerateMetadataSchema(build_ext.build_ext):
|
||||||
_copy_to_build_lib_dir(
|
_copy_to_build_lib_dir(
|
||||||
self.build_lib,
|
self.build_lib,
|
||||||
'mediapipe/tasks/metadata/' + target + '_generated.py')
|
'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):
|
class BazelExtension(setuptools.Extension):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user