OpenPype icon indicating copy to clipboard operation
OpenPype copied to clipboard

Chore: Runtime dependencies

Open iLLiCiTiT opened this issue 1 year ago • 7 comments

Changelog Description

This PR moves some python modules to runtime dependencies to not add them to PYTHONPATH for DCC subprocesses.

Additional info

All of the moved dependencies have binary dependency and can be used only with Python where were installed so it does not make sense to have them in PYTHONPATH. Also having them in PYTHONPATH can cause that they break python dependencies insude DCC (like here https://github.com/ynput/OpenPype/issues/5921). And removed unused python module Qt.py.

Sync server providers imports are not raising errors. There should be some better logic to import them @kalisp .

Testing notes:

This PR may have pre-requirement this PR https://github.com/ynput/OpenPype/pull/5928 .

  1. Remove ./.venv/ and ./vendor/python/ to remove already existing dependencies.
  2. Run create_env.ps1/.sh and fetch_thirdparty_libs.ps1/.sh scripts.
  3. Run tray.
  4. Everything should work as expected (sync server).

iLLiCiTiT avatar Jan 22 '24 17:01 iLLiCiTiT