python3-lxml add to repo

This commit is contained in:
idriskalp
2020-01-14 17:17:56 +03:00
parent 8efc418ef3
commit e7a5c48486
3 changed files with 97 additions and 0 deletions
@@ -0,0 +1,27 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir = "lxml-%s" % get.srcVERSION()
def build():
# remove the C extension so that it will be rebuild using the latest Cython
shelltools.unlink("src/lxml/lxml.etree.c")
shelltools.unlink("src/lxml/lxml.etree_api.h")
shelltools.unlink("src/lxml/lxml.objectify.c")
pythonmodules.compile(pyVer="3")
def install():
pythonmodules.install(pyVer="3")
pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()),"doc/*")
pisitools.dodoc("CHANGES.txt", "LICENSES.txt", "TODO.txt")