ayon-core/openpype/hosts/fusion
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
..
api fusion: adding ayon menu 2023-11-30 15:29:47 +01:00
deploy menu.py to launch_menu.py and removing script folder ref 2023-12-04 21:19:23 +01:00
hooks Fusion: automatic installation of PySide2 (#6111) 2024-01-10 17:10:52 +01:00
plugins Merge branch 'develop' into fusion_output_format_validator 2023-12-18 15:55:24 +00:00
scripts Remove old Render Mode menu 2023-03-13 17:57:09 +01:00
vendor Fussion: added support for Fusion 17 (#5614) 2023-09-15 11:02:37 +02:00
__init__.py use dictionary to store fusion versions and variables 2023-03-16 21:32:48 +03:00
addon.py Fussion: added support for Fusion 17 (#5614) 2023-09-15 11:02:37 +02:00