actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. from pisi.actionsapi import cmaketools
  10. from pisi.actionsapi import shelltools
  11. WorkDir = "pyside2-master"
  12. def setup():
  13. shelltools.makedirs("build3")
  14. shelltools.cd("build3")
  15. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  16. -DCMAKE_BUILD_TYPE=Release \
  17. -DUSE_PYTHON_VERSION=3.4 \
  18. -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.4m \
  19. -DPYTHON_LIBRARY=/usr/lib/libpython3.4m.so -DPYTHON_SUFFIX=-python3.4 \
  20. -DBUILD_TESTS=OFF", sourceDir="..")
  21. def build():
  22. shelltools.cd("build3")
  23. autotools.make()
  24. def install():
  25. shelltools.cd("build3")
  26. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())