diff options
| author | John Estabrook <jestabro@vyos.io> | 2025-03-31 00:29:47 -0500 |
|---|---|---|
| committer | John Estabrook <jestabro@vyos.io> | 2025-04-03 13:03:16 -0500 |
| commit | 51dadbaffc515f455a82221f47c6750ad9eeccc1 (patch) | |
| tree | b8267c54142b0091723ac64d80234abc00c130ca /python/setup.py | |
| parent | 09cb7801d790597e5fac0c19f872977891778323 (diff) | |
| download | veeos-1x-51dadbaffc515f455a82221f47c6750ad9eeccc1.tar.gz veeos-1x-51dadbaffc515f455a82221f47c6750ad9eeccc1.zip | |
T7292: generate vyconfd client library dataclasses
Diffstat (limited to 'python/setup.py')
| -rw-r--r-- | python/setup.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/python/setup.py b/python/setup.py index 96dc211f7..571b956ee 100644 --- a/python/setup.py +++ b/python/setup.py @@ -7,6 +7,9 @@ from setuptools.command.build_py import build_py sys.path.append('./vyos') from defaults import directories +def desc_out(f): + return os.path.splitext(f)[0] + '.desc' + def packages(directory): return [ _[0].replace('/','.') @@ -37,9 +40,17 @@ class GenerateProto(build_py): 'protoc', '--python_out=vyos/proto', f'--proto_path={self.proto_path}/', + f'--descriptor_set_out=vyos/proto/{desc_out(proto_file)}', proto_file, ] ) + subprocess.check_call( + [ + 'vyos/proto/generate_dataclass.py', + 'vyos/proto/vyconf.desc', + '--out-dir=vyos/proto', + ] + ) build_py.run(self) |
