gnu: python2-virtualenv: Remove unnecessary build phase.

* gnu/packages/python-xyz.scm (python2-virtualenv)[arguments]: Remove field.
This commit is contained in:
Ricardo Wurmus 2021-11-18 15:35:09 +00:00
parent 04893962f6
commit adebc0c9fa
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -3867,29 +3867,6 @@ (define-public python2-virtualenv
(let ((base (package-with-python2 (strip-python2-variant python-virtualenv))))
(package
(inherit base)
(arguments
`(#: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
`(("python-contextlib2" ,python2-contextlib2)
,@(package-propagated-inputs base))))))