diff options
| author | Daniil Baturin <daniil@vyos.io> | 2025-04-08 15:12:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-08 15:12:03 +0100 |
| commit | 6522dcdc8a07f15ceb504f29bf190a36d3d6ae82 (patch) | |
| tree | 5a516efe263e39cd9191252139b7a05ed3acb92b /python/setup.py | |
| parent | 57348412afeedb15e647284881497c9c1c570b92 (diff) | |
| parent | 67a85ae7c5328dacfd30dba4c914eac949fb1dc7 (diff) | |
| download | veeos-1x-6522dcdc8a07f15ceb504f29bf190a36d3d6ae82.tar.gz veeos-1x-6522dcdc8a07f15ceb504f29bf190a36d3d6ae82.zip | |
Merge pull request #4427 from jestabro/commit-post
T7292: add Python module client library for vyconfd
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) |
