0
0
mirror of https://github.com/python-LimeReport/pyside.git synced 2024-12-23 14:43:00 +03:00
This commit is contained in:
Maxim Slipenko 2024-03-10 20:57:52 +03:00
parent 88dffb0d87
commit 431641125d

View File

@ -3,6 +3,13 @@ import os
import shutil
import tarfile
def get_opt_dir():
if os.name == 'nt':
os.mkdir("/opt")
return "/opt"
else:
return "/opt"
def qt6_build():
subprocess.run(["python3", "setup.py", "build", "--parallel", str(os.cpu_count()), "bdist_wheel", "--limited-api", "yes"], check=True)
dir_name = f'qfpa-py{os.environ["PYTHON_VERSION"]}-qt{os.environ["QT_VERSION"]}-64bit-release'
@ -24,7 +31,7 @@ def init():
os.makedirs('/output', exist_ok=True)
os.chdir('/opt')
os.chdir(get_opt_dir())
subprocess.run(["git", "clone", "-b", os.environ["QT_VERSION"], "https://code.qt.io/pyside/pyside-setup.git"], check=True)
os.chdir('pyside-setup')
subprocess.run(["pip3", "install", "-r", "requirements.txt"], check=True)