actions.py 995 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env 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. from pisi.actionsapi import get
  10. def build():
  11. shelltools.system("sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/python3|g' flowblade-trunk/Flowblade/launch/*")
  12. shelltools.system("sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/python3|g' flowblade-trunk/Flowblade/tools/clapperless.py")
  13. shelltools.cd("flowblade-trunk")
  14. pythonmodules.compile(pyVer="3")
  15. def install():
  16. shelltools.cd("flowblade-trunk")
  17. pythonmodules.install(pyVer="3")
  18. shelltools.chmod(get.installDIR() + "/usr/lib/python3.11/site-packages/Flowblade/launch/*")
  19. shelltools.chmod(get.installDIR() + "/usr/lib/python3.11/site-packages/Flowblade/tools/clapperless.py")
  20. pisitools.dodoc("AUTHORS", "COPYING", "README*")