aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
author宋文武 <iyzsong@gmail.com>2015-04-14 15:11:51 +0800
committer宋文武 <iyzsong@gmail.com>2015-04-14 15:11:51 +0800
commit0e05d01e4f579f4f4866528d53178506444974a9 (patch)
tree2577ff0eec47662ca6d793168636053a5143f216 /gnu
parent279a587d60b7574752885e85bf1291df1700b7d7 (diff)
downloadpatches-0e05d01e4f579f4f4866528d53178506444974a9.tar
patches-0e05d01e4f579f4f4866528d53178506444974a9.tar.gz
gnu: python: Use 'version-major+minor' to compute PYTHONPATH.
Fixes a regression introduced in 08c0450. * gnu/packages/python.scm (python)[native-search-paths]: Use 'version-major+minor' to compute PYTHONPATH.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 2381c7d2c7..d64f6331d9 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -216,7 +216,9 @@ data types.")
(native-search-paths
(list (search-path-specification
(variable "PYTHONPATH")
- (files '("lib/python3.3/site-packages")))))))
+ (files (list (string-append "lib/python"
+ (version-major+minor version)
+ "/site-packages"))))))))
(define-public python-wrapper
(package (inherit python)