gnu: python-pyqt: Fix build by explicitly setting the stubsdir.

* gnu/packages.qt.scm (python-pyqt, python2-pyqt)[arguments]: In phase
'configure' pass option --stubsdir.
This commit is contained in:
Hartmut Goebel 2016-12-04 23:13:26 +01:00
parent 931eaeaad9
commit 43e8824d3c
No known key found for this signature in database
GPG key ID: 634A8DFFD3F631DF

View file

@ -1015,13 +1015,19 @@ (define-public python-pyqt
"."))
(lib (string-append out "/lib/python"
python-major+minor
"/site-packages")))
"/site-packages"))
(stubs (string-append lib "/PyQt5")))
(zero? (system* "python" "configure.py"
"--confirm-license"
"--bindir" bin
"--destdir" lib
"--designer-plugindir" designer
"--qml-plugindir" qml
; Where to install the PEP 484 Type Hints stub
; files. Without this the stubs are tried to be
; installed into the python package's
; site-package directory, which is read-only.
"--stubsdir" stubs
"--sipdir" sip))))))))
(home-page "https://www.riverbankcomputing.com/software/pyqt/intro")
(synopsis "Python bindings for Qt")