actions.py 677 B

123456789101112131415161718192021
  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 pisitools
  8. from pisi.actionsapi import shelltools
  9. def build():
  10. shelltools.system("grep -rl '^#!.*python$' | xargs sed -i '1s/python/&3/'")
  11. pythonmodules.compile(pyVer="3")
  12. def install():
  13. pythonmodules.install(pyVer="3")
  14. pisitools.dosym("/usr/share/icons/hicolor/scalable/apps/org.xfce.catfish.svg", "/usr/share/pixmaps/org.xfce.catfish.svg")
  15. #pisitools.dodoc("AUTHORS", "BUGS", "ChangeLog", "COPYING", "NEWS", "README")