Files
main/programming/language/python/python-lxml/actions.py
T
2020-05-25 00:44:14 +03:00

28 lines
801 B
Python

#!/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 get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pythonmodules
#WorkDir = "lxml-%s" % get.srcVERSION()
def setup():
# Setting LC_CTYPE to workaround encoding issue
shelltools.export("LC_CTYPE", "en_US.UTF-8")
def build():
# fix unused dependency analysis
shelltools.export("LDSHARED", "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lpthread")
pythonmodules.compile()
def install():
pythonmodules.install()
pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()),"doc/*")
pisitools.dodoc("CHANGE*", "LICENSE*")