ayon-core/server_addon/fusion/server
Petr Kalis 399bb404c4
Fusion: automatic installation of PySide2 (#6111)
* OP-7450 - WIP of new hook to install PySide2

Currently not working yet as subprocess is invoking wrong `pip` which causes issue about missing `dataclasses`.

* OP-7450 - updates querying of PySide2 presence

Cannot use pip list as wrong pip from .venv is used and it was causing issue about missing dataclass (not in Python3.6).
This implementation is simpler and just tries to import PySide2.

* OP-7450 - typo

* OP-7450 - removed forgotten raise for debugging

* OP-7450 - double quotes

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

* OP-7450 - return if error

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

* OP-7450 - return False

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

* OP-7450 - added optionality for InstallPySideToFusion

New hook is controllable by Settings.

* OP-7450 - updated querying of Qt

This approach should be more generic, not tied to specific version of PySide2

* OP-7450 - fix unwanted change

* OP-7450 - added settings for legacy OP

* OP-7450 - use correct python executable name in Linux

Because it is not "expected" python in blender but installed python, I would expect the executable is python3 on linux/macos rather than python.

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

* OP-7450 - headless installation in Windows

It checks first that it would need admin privileges for installation, if not it installs headlessly. If yes, it will create separate dialog that will ask for admin privileges.

* OP-7450 - Hound

* Update openpype/hosts/fusion/hooks/pre_pyside_install.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

---------

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2024-01-10 17:10:52 +01:00
..
__init__.py AYON: Addon settings in OpenPype (#5347) 2023-07-26 14:08:42 +02:00
imageio.py AYON: Addon settings in OpenPype (#5347) 2023-07-26 14:08:42 +02:00
settings.py Fusion: automatic installation of PySide2 (#6111) 2024-01-10 17:10:52 +01:00
version.py Fusion: automatic installation of PySide2 (#6111) 2024-01-10 17:10:52 +01:00