[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: python-xapian-bindings: Don't hard-code Python sitedir.
From: |
Marius Bakke |
Subject: |
01/01: gnu: python-xapian-bindings: Don't hard-code Python sitedir. |
Date: |
Sat, 27 Jan 2018 16:02:57 -0500 (EST) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit c3753f380397eb0ad2fd2596747d7996e03cbecc
Author: Marius Bakke <address@hidden>
Date: Sat Jan 27 22:00:39 2018 +0100
gnu: python-xapian-bindings: Don't hard-code Python sitedir.
* gnu/packages/search.scm (python-xapian-bindings)[arguments]: In
#:make-flags,
use VERSION-MAJOR+MINOR to set pkgpylibdir.
---
gnu/packages/search.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm
index 1986b07..1479d1b 100644
--- a/gnu/packages/search.scm
+++ b/gnu/packages/search.scm
@@ -24,6 +24,7 @@
#:select (gpl2 gpl2+ gpl3+ lgpl2.1+ bsd-3 x11))
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix utils)
#:use-module (guix build-system gnu)
#:use-module (gnu packages)
#:use-module (gnu packages compression)
@@ -90,7 +91,9 @@ rich set of boolean query operators.")
#:make-flags
(list (string-append "pkgpylibdir="
(assoc-ref %outputs "out")
- "/lib/python3.5/site-packages/xapian"))))
+ "/lib/python" ,(version-major+minor
+ (package-version python))
+ "/site-packages/xapian"))))
(inputs
`(("python" ,python)
("python-sphinx" ,python-sphinx) ; for documentation