actions.py 745 B

1234567891011121314151617181920212223242526272829303132
  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. WorkDir = "nose-%s" % get.srcVERSION()
  11. examples = "%s/%s/" % (get.docDIR(), get.srcNAME())
  12. shelltools.export("PYTHONDONTWRITEBYTECODE", "1")
  13. def setup():
  14. shelltools.system("sed -i -e 's:man/man1:share/man/man1:g' setup.py")
  15. def build():
  16. pythonmodules.compile()
  17. def install():
  18. pythonmodules.install()
  19. pisitools.dohtml("doc/*")
  20. shelltools.chmod("examples/*", 0644)
  21. pisitools.insinto(examples, "examples/*")