actions.py 800 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/copyleft/gpl.txt.
  6. from pisi.actionsapi import pythonmodules
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. WorkDir = "lxml-%s" % get.srcVERSION()
  11. def build():
  12. # remove the C extension so that it will be rebuild using the latest Cython
  13. shelltools.unlink("src/lxml/lxml.etree.c")
  14. shelltools.unlink("src/lxml/lxml.etree_api.h")
  15. shelltools.unlink("src/lxml/lxml.objectify.c")
  16. pythonmodules.compile()
  17. def install():
  18. pythonmodules.install()
  19. pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()),"doc/*")
  20. pisitools.dodoc("CHANGES.txt", "LICENSES.txt", "TODO.txt")