[PySide] Multiple PySide for Multiple Qt in a same python install?

Cristián Maureira-Fredes Cristian.Maureira-Fredes at qt.io
Tue Jan 22 11:16:57 CET 2019


Hello Oliver,

it sounds that your setup could get some improvement
by using Virtual environments [1].
Have you consider to have different environment for different purposes?
Then, you can just activate what you want

Cheers

[1] https://virtualenv.pypa.io/en/latest/

________________________________________
From: PySide <pyside-bounces at qt-project.org> on behalf of Olivier B. <perso.olivier.barthelemy at gmail.com>
Sent: 22 January 2019 11:06:56
To: pyside at qt-project.org
Subject: [PySide] Multiple PySide for Multiple Qt in a same python install?

I am preparing to build an new Qt version. So i will build a new
PySide2 with it. So the problem will happen of having multiple PySide
versions useable in python depending on the Qt i want to use.
The Python install also has a matplotlib module, which uses PySide2 as backend

I did not manage to install PySide2 outside of python
site-packages/PySide2 using setup.py, so i manually move it and use
pth files so each PySide version will have its own storage folder.

But then, i would like that python loads the proper PySide depending
on the current Qt i choose to use.
I have a QT_VERSION environment variable during python sessions. I
could maybe add a different site dir in PySide's sitecustomize.py that
i created, that depends on that QT_VERSION

What means do you people have in place to switch Qt/PySide2 versions?
_______________________________________________
PySide mailing list
PySide at qt-project.org
https://lists.qt-project.org/listinfo/pyside



More information about the PySide mailing list