actions.py 890 B

1234567891011121314151617181920212223242526272829
  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 get
  9. #WorkDir = "Sphinx-%s" % get.srcVERSION()
  10. def build():
  11. pythonmodules.compile()
  12. def install():
  13. pythonmodules.install()
  14. # Generating the Grammar pickle to avoid on the fly generation causing sandbox violations
  15. pythonmodules.run("-c \"from sphinx.pycode.pgen2.driver import load_grammar ; \
  16. load_grammar('%s/usr/lib/%s/site-packages/sphinx/pycode/Grammar-py2.txt')\"" %(get.installDIR(), get.curPYTHON(), ) )
  17. # create sphinx documentation using itself
  18. pythonmodules.run("sphinx-build.py doc doc/_build/html")
  19. pisitools.dohtml("doc/_build/html/*")
  20. pisitools.dodoc("CHANGES", "EXAMPLES")