Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Qt binding granurality #127

Merged
merged 11 commits into from
Jul 24, 2024
15 changes: 13 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ semver = "^2.13.0"
QtPy = "^2.3.0"
pywin32 = { version = "301", markers = "sys_platform == 'win32'" }
python3-xlib = { version="*", markers = "sys_platform == 'linux'"}
distro = "^1.9.0"
iLLiCiTiT marked this conversation as resolved.
Show resolved Hide resolved

[tool.poetry.dev-dependencies]
flake8 = "^6.0"
Expand Down Expand Up @@ -97,6 +98,10 @@ version = "6.7.1"
package = "PySide2"
version = "5.15.2"

[ayon.qtbinding.rocky8]
package = "PySide2"
version = "5.15.2"

[tool.pyright]
include = [
"vendor"
Expand Down
7 changes: 7 additions & 0 deletions tools/runtime_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import time
import subprocess
from pathlib import Path
import distro

import toml
import enlighten
Expand Down Expand Up @@ -135,6 +136,12 @@ def main():
runtime_dep_root = repo_root / "vendor"
pyproject = toml.load(repo_root / "pyproject.toml")
platform_name = platform.system().lower()
# special handling for centos7 and rocky8 - we might need to make
# it more universal for other flavours of linux
if platform_name == "linux":
linux_brand = f"{distro.id()}{distro.major_version()}"
if linux_brand in ["centos7", "rocky8"]:
platform_name = linux_brand
install_qtbinding(pyproject, runtime_dep_root, platform_name)
install_runtime_dependencies(pyproject, runtime_dep_root)
end_time = time.time_ns()
Expand Down