actions.py 735 B

12345678910111213141516171819202122232425262728
  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 get
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import pythonmodules
  9. examples = "%s/%s/examples" % (get.docDIR(), get.srcNAME())
  10. WorkDir = "jinja-%s" % get.srcVERSION()
  11. def build():
  12. pythonmodules.compile()
  13. def install():
  14. pythonmodules.install()
  15. pisitools.insinto(examples, "examples/*")
  16. #Create docs with python-Sphinx
  17. #shelltools.cd("docs")
  18. #autotools.make("html")
  19. #shelltools.cd("..")
  20. #pisitools.dohtml("Jinja2-%s/docs/_build/html/*" % get.srcVERSION())
  21. pisitools.dodoc("CHANGES*", "README*")