Files
main/programming/language/python3/pyside6/actions.py
T
2025-01-24 16:03:48 +03:00

31 lines
962 B
Python

# -*- coding: utf-8 -*-
#
# Copyright 2011 TUBITAK/BILGEM
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import get
from pisi.actionsapi import cmaketools
from pisi.actionsapi import shelltools
def setup():
shelltools.cd("sources/pyside6")
shelltools.makedirs("build2")
shelltools.cd("build2")
cmaketools.configure("-G Ninja -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTS=OFF \
-DPYTHON_EXECUTABLE=/usr/bin/python3", sourceDir="..")
def build():
shelltools.cd("sources/pyside6/build2")
shelltools.system("ninja")
# cmaketools.make()
def install():
shelltools.cd("sources/pyside6/build2")
shelltools.system("DESTDIR=%s ninja install" % get.installDIR())
# cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())