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.
This commit is contained in:
宋文武 2015-04-14 15:11:51 +08:00
parent 279a587d60
commit 0e05d01e4f
1 changed files with 3 additions and 1 deletions

View File

@ -216,7 +216,9 @@ data types.")
(native-search-paths (native-search-paths
(list (search-path-specification (list (search-path-specification
(variable "PYTHONPATH") (variable "PYTHONPATH")
(files '("lib/python3.3/site-packages"))))))) (files (list (string-append "lib/python"
(version-major+minor version)
"/site-packages"))))))))
(define-public python-wrapper (define-public python-wrapper
(package (inherit python) (package (inherit python)