1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

python: build protobuf serializer for Python

This commit is contained in:
Steffen Vogel 2017-10-27 19:20:03 +02:00
parent 3af77a2d0b
commit 5d7bb098b9
6 changed files with 36 additions and 3 deletions

View file

@ -60,7 +60,8 @@ RUN dnf -y install \
# Tools for debugging, coverage, profiling
RUN pip install \
gcovr
gcovr \
protobuf
# Some of the dependencies are only available in our own repo
ADD https://villas.fein-aachen.org/packages/villas.repo /etc/yum.repos.d/

View file

@ -66,7 +66,8 @@ RUN yum -y install \
# Tools for debugging, coverage, profiling
RUN pip install \
gcovr
gcovr \
protobuf
# Dependencies
RUN yum -y install \

View file

@ -64,7 +64,8 @@ RUN apt-get update && apt-get install -y \
# Tools for debugging, coverage, profiling
RUN pip install \
gcovr
gcovr \
protobuf
# Dependencies
RUN apt-get update && apt-get install -y \

View file

@ -21,6 +21,8 @@
###################################################################################
CLIENTS =
-include $(SRCDIR)/clients/python/Makefile.inc
ifneq ($(wildcard $(SRCDIR)/thirdparty/libopal/include/opal/AsyncApi.h),)
-include $(SRCDIR)/clients/opal/Makefile.inc

4
clients/python/.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
*.pyc
# Generated code by Protobuf
*_pb2.py

View file

@ -0,0 +1,24 @@
# Makefile.
#
# @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
# @copyright 2017, Institute for Automation of Complex Power Systems, EONERC
# @license GNU General Public License (version 3)
#
# VILLASnode
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
###################################################################################
clients/python/villas_pb2.py: lib/io/villas.proto
protoc --proto_path=$(dir $^) --python_out=$(dir $@) $^