gnu: python-apsw: Build with all extensions.
authorJelle Licht <jlicht@fsfe.org>
Sat, 22 Jul 2017 12:23:18 +0000 (14:23 +0200)
committerJelle Licht <jlicht@fsfe.org>
Sun, 10 Sep 2017 23:12:59 +0000 (01:12 +0200)
* 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

index d3df1ac..d7156bf 100644 (file)
@@ -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)