actions.py 658 B

12345678910111213141516171819202122232425
  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/licenses/gpl.txt
  6. from pisi.actionsapi import pythonmodules
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import pisitools
  9. def setup():
  10. # prevent setup.py from trying to update MIME databases
  11. shelltools.system("sed -i 's/^ROOT =.*/ROOT = False/' setup.py || die")
  12. pythonmodules.compile(pyVer="3")
  13. def build():
  14. pythonmodules.compile(pyVer="3")
  15. shelltools.system("python3 setup.py build")
  16. def install():
  17. pythonmodules.install(pyVer="3")
  18. pisitools.dodoc("COPYING", "README*")