mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
python-build-system: Fix 'get-python-version'.
* guix/build/python-build-system.scm (get-python-version): Rewrite to handle multiple-digit version number components.
This commit is contained in:
parent
494e9b9167
commit
9f6509c655
1 changed files with 4 additions and 1 deletions
|
@ -55,7 +55,10 @@ (define* (check #:key tests? test-target #:allow-other-keys)
|
|||
#t))
|
||||
|
||||
(define (get-python-version python)
|
||||
(string-take (string-take-right python 5) 3))
|
||||
(let* ((version (last (string-split python #\-)))
|
||||
(components (string-split version #\.))
|
||||
(major+minor (take components 2)))
|
||||
(string-join major+minor ".")))
|
||||
|
||||
(define* (install #:key outputs inputs (configure-flags '())
|
||||
#:allow-other-keys)
|
||||
|
|
Loading…
Reference in a new issue