Search code examples
qscintillaqtpy

Install QScintilla to qtpy


I am using qtpy to write Qt application and I import modules as `

from qtpy import QtWidget

I would like to install QScintilla but installing it using

pip install QScintilla

installs QScintilla inside site-packages/PyQt5 directory ,but I would like it go to site-packages/qtpy , if possible.

I have also tried

pip install --target site-packages/qtpy QScintilla

but it install PyQt5 first inside site-packages/qtpy directory (as dependency) and inside Qscintilla inside the new PyQt5 directory.


Solution

  • With this commit, the QScinitilla can be imported from qtpy as

    from qtpy import Qsci