actions.py 861 B

12345678910111213141516171819202122232425262728
  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 pisitools
  8. from pisi.actionsapi import shelltools
  9. def build():
  10. pythonmodules.compile(pyVer="3")
  11. shelltools.system("python3 setup.py build")
  12. def check():
  13. pass
  14. #pythonmodules.run("setup.py test", pyVer="3")
  15. #pythonmodules.run("test/run_all_unittests.py",pyVer="3")
  16. #pythonmodules.run("test/run_examples_test.py",pyVer="3")
  17. def install():
  18. pythonmodules.install(pyVer="3")
  19. # unneeded systemd service file
  20. pisitools.removeDir("/etc/systemd/system/sshd-keygen@.service.d/disable-sshd-keygen-if-cloud-init-active.conf")
  21. pisitools.removeDir("/lib/systemd/")
  22. pisitools.dodoc("LICENSE", "README*")