guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: python-apsw: Build with all extensions.


From: Jelle Licht
Subject: 01/01: gnu: python-apsw: Build with all extensions.
Date: Sun, 10 Sep 2017 19:13:25 -0400 (EDT)

jlicht pushed a commit to branch master
in repository guix.

commit cfd34f43164b68ddc91cc051f72f2d3fe5a0ab40
Author: Jelle Licht <address@hidden>
Date:   Sat Jul 22 14:23:18 2017 +0200

    gnu: python-apsw: Build with all extensions.
    
    * gnu/packages/python.scm (python-apsw)[phases]: Replace build phase; add 
flag
      to build all extensions. Add build-test-helper to allow testing of
      extensions.
---
 gnu/packages/python.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index d3df1ac..d7156bf 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -6237,6 +6237,16 @@ implementation of D-Bus.")
     (arguments
      `(#:phases
        (modify-phases %standard-phases
+         (replace 'build
+           (lambda _
+             (zero?
+              (system* "python" "setup.py" "build" 
"--enable-all-extensions"))))
+         (add-after 'build 'build-test-helper
+           (lambda _
+             (zero?
+              (system
+               (string-append "gcc -fPIC -shared -o ./testextension.sqlext "
+                              "-I. -Isqlite3 src/testextension.c") ))))
          (delete 'check)
          (add-after 'install 'check
            (lambda* (#:key inputs outputs #:allow-other-keys)



reply via email to

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