actions.py 605 B

1234567891011121314151617181920
  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. from pisi.actionsapi import get
  10. def install():
  11. pythonmodules.install()
  12. pisitools.dodoc("COPYING.txt", "PKG-INFO", "README.txt")
  13. #Remove .py extensions from scripts in /usr/bin
  14. for f in shelltools.ls("%s/usr/bin" % get.installDIR()):
  15. pisitools.domove("/usr/bin/%s" % f, "/usr/bin", f.replace(".py", ""))