From 9b016e29912b11f52e67e59b211fa016d88fea4a Mon Sep 17 00:00:00 2001 From: Ontje Lünsdorf Date: Thu, 10 Nov 2022 09:11:11 +0100 Subject: gnu: python-protobuf: Use C++ implementation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/protobuf.scm (python-protobuf): Use C++ implementation. [inputs]: Add protobuf. [arguments]: Add --cpp_implementation configure flags. Signed-off-by: Ludovic Courtès --- gnu/packages/protobuf.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm index f7184bd49a..ab701b254d 100644 --- a/gnu/packages/protobuf.scm +++ b/gnu/packages/protobuf.scm @@ -406,6 +406,12 @@ from protobuf specification files.") (base32 "1ja2vpk9nklllmsirmil2s4l7ni9yfqvbvj47zz5xx17s1k1bhxd")))) (build-system python-build-system) + (inputs (list protobuf)) + (arguments + `(;; Favor C++ implementation from protobuf over the native Python + ;; implementation. The additional dependency yields significant + ;; performance improvements for some workloads. + #:configure-flags '("--cpp_implementation"))) (home-page "https://github.com/google/protobuf") (synopsis "Protocol buffers is a data interchange format") (description -- cgit 1.4.1