guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/04: gnu: python-protobuf: Use C++ implementation.


From: guix-commits
Subject: 01/04: gnu: python-protobuf: Use C++ implementation.
Date: Fri, 2 Dec 2022 17:13:11 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 9b016e29912b11f52e67e59b211fa016d88fea4a
Author: Ontje Lünsdorf <ontje.luensdorf@dlr.de>
AuthorDate: Thu Nov 10 09:11:11 2022 +0100

    gnu: python-protobuf: Use C++ implementation.
    
    * gnu/packages/protobuf.scm (python-protobuf): Use C++ implementation.
      [inputs]: Add protobuf.
      [arguments]: Add --cpp_implementation configure flags.
    
    Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]