actions.py 479 B

123456789101112131415
  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 shelltools
  7. from pisi.actionsapi import pisitools
  8. def build():
  9. shelltools.system("python -m compileall .")
  10. def install():
  11. pisitools.insinto("/usr/lib/python2.7/site-packages/backports/", "__init__.py")
  12. pisitools.insinto("/usr/lib/python2.7/site-packages/backports/", "__init__.pyc")