Files
PyQt6_LaTaniere/install.py
2026-03-05 14:48:17 +01:00

61 lines
1.5 KiB
Python

import os
import sys
_all_ = [
"PyQt6>=6.10.2",
"PyQt6-Qt6>=6.10.2",
"PyQt6_sip>=13.11.0",
"PySide6>=6.10.2",
"PySide6_Addons>=6.10.2",
"PySide6_Essentials>=6.10.2",
"shiboken6>=6.10.2",
"librt>=0.8.1",
"mypy>=1.19.1",
"mypy_extensions>=1.1.0",
]
windows = [
"typing_extensions>=4.15.0",
"win11toast>=0.36.3",
"winrt-runtime>=3.2.1",
"winrt-Windows.Data.Xml.Dom>=3.2.1",
"winrt-Windows.Foundation>=3.2.1",
"winrt-Windows.Foundation.Collections>=3.2.1",
"winrt-Windows.Globalization>=3.2.1",
"winrt-Windows.Graphics.Imaging>=3.2.1",
"winrt-Windows.Media.Core>=3.2.1",
"winrt-Windows.Media.Ocr>=3.2.1",
"winrt-Windows.Media.Playback>=3.2.1",
"winrt-Windows.Media.SpeechSynthesis>=3.2.1",
"winrt-Windows.Storage>=3.2.1",
"winrt-Windows.Storage.Streams>=3.2.1",
"winrt-Windows.UI.Notifications>=3.2.1",
]
linux = [] # type: list[str]
darwin = [] # type: list[str]
def install(packages):
for package in packages:
os.system(f'python3 -m pip install "{package}"')
if __name__ == "__main__":
from sys import platform
if hasattr(sys, 'real_prefix') or (hasattr(sys, 'base_prefix') and sys.base_prefix != sys.prefix):
print("Inside venv")
else:
print("Not in venv, quit.")
sys.exit()
install(_all_)
if platform== 'windows':
install(windows)
if platform.startswith('linux'):
install(linux)
if platform == 'darwin': # MacOs
install(darwin)