Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
38 lines (30 loc) · 972 Bytes

File metadata and controls

38 lines (30 loc) · 972 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python3
import os
import sys
import subprocess
import platform
import shutil
import pathlib
from paths import Paths
class UnsupportedPlatform(Exception):
pass
# https://stackoverflow.com/questions/1854/what-os-am-i-running-on
if platform.system() != "Windows":
raise UnsupportedPlatform()
qt_version = "5.15.1"
qt_prefix_dir = "C:/Qt"
qt_platform = "desktop"
qt_system = "windows"
qt_target = "win64_msvc2019_64"
qt_target_folder = "msvc2019_64"
final_dir = os.path.join(qt_prefix_dir, qt_version, qt_target_folder)
qmake_path = os.path.join(final_dir, 'bin', 'qmake.exe')
if os.path.exists(qmake_path):
print("skipping installation of qt, because '%s' does already exists" % qmake_path)
sys.exit()
print("installation of qt, because '%s' does not exists" % qmake_path)
subprocess.run(['aqt', 'install',
'--outputdir', qt_prefix_dir,
qt_version, qt_system, qt_platform, qt_target,
'-m', 'qtcharts'],
check=True)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.