gnu: python2-virtualenv: Fix build.
* gnu/packages/python-xyz.scm (python2-virtualenv)[arguments]{phases}: Remove argument.
This commit is contained in:
parent
73068c77f1
commit
6f54af26ce
1 changed files with 1 additions and 22 deletions
|
@ -3188,28 +3188,7 @@ e.g. filters, callbacks and errbacks can all be promises.")
|
||||||
(package
|
(package
|
||||||
(inherit base)
|
(inherit base)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:python ,python-2
|
`(#:python ,python-2))
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
|
||||||
(add-after 'set-paths 'adjust-PYTHONPATH
|
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
|
||||||
(let* ((python (assoc-ref inputs "python"))
|
|
||||||
(python-sitedir (string-append python "/lib/python2.7"
|
|
||||||
"/site-packages")))
|
|
||||||
;; XXX: 'python2' always comes first on PYTHONPATH
|
|
||||||
;; and shadows the 'setuptools' input. Move python2
|
|
||||||
;; last: this should be fixed in python-build-system
|
|
||||||
;; in a future rebuild cycle.
|
|
||||||
(setenv "PYTHONPATH"
|
|
||||||
(string-append (string-join (delete python-sitedir
|
|
||||||
(string-split
|
|
||||||
(getenv "PYTHONPATH")
|
|
||||||
#\:))
|
|
||||||
":")
|
|
||||||
":" python-sitedir))
|
|
||||||
(format #t "environment variable `PYTHONPATH' changed to `~a'~%"
|
|
||||||
(getenv "PYTHONPATH"))
|
|
||||||
#t))))))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-contextlib2" ,python2-contextlib2)
|
`(("python-contextlib2" ,python2-contextlib2)
|
||||||
,@(package-propagated-inputs base))))))
|
,@(package-propagated-inputs base))))))
|
||||||
|
|
Reference in a new issue