actions.py 840 B

12345678910111213141516171819202122232425262728
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Copyright 2011 TUBITAK/BILGEM
  4. # Licensed under the GNU General Public License, version 2.
  5. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import cmaketools
  8. from pisi.actionsapi import shelltools
  9. def setup():
  10. shelltools.cd("sources/shiboken6")
  11. shelltools.makedirs("build3")
  12. shelltools.cd("build3")
  13. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  14. -DCMAKE_BUILD_TYPE=Release \
  15. -DBUILD_TESTS=OFF \
  16. -DUSE_PYTHON_VERSION=3", sourceDir="..")
  17. def build():
  18. shelltools.cd("sources/shiboken6/build3")
  19. cmaketools.make()
  20. def install():
  21. shelltools.cd("sources/shiboken6/build3")
  22. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())