actions.py 914 B

1234567891011121314151617181920212223
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-·
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/copyleft/gpl.txt.
  6. from pisi.actionsapi import pythonmodules
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. pythonmodules.configure("--default-graphics=spice --default-hvs qemu,xen,lxc", pyVer="3")
  12. pythonmodules.compile(pyVer="3")
  13. def install():
  14. shelltools.system("""touch --no-create %s/usr/share/icons/hicolor >/dev/null 2>&1 || :
  15. /usr/bin/update-desktop-database > /dev/null 2>&1 || :""" % get.installDIR())
  16. shelltools.system("python3 setup.py --no-update-icon-cache --no-compile-schemas install --root=%s --no-compile -O0" % get.installDIR())
  17. #pythonmodules.install(pyVer="3")
  18. #pisitools.dodoc("COPYING", "NEWS", "README*", "PKG-INFO")