python3-pillow:ver bump
This commit is contained in:
@@ -6,23 +6,30 @@
|
||||
|
||||
from pisi.actionsapi import pythonmodules
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
#WorkDir="Imaging-%s" % get.srcVERSION()
|
||||
|
||||
def build():
|
||||
# suppress warnings
|
||||
pisitools.cflags.add("-Wno-sign-compare")
|
||||
# suppress compiler warnings
|
||||
pisitools.cflags.add("-Wno-sign-compare -Wno-pointer-sign")
|
||||
# fix unused direct dependency analysis
|
||||
shelltools.export("LDSHARED", "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lpthread")
|
||||
pythonmodules.compile(pyVer="3")
|
||||
|
||||
# build documentation
|
||||
shelltools.export("PYTHONPATH", "%s/Pillow-%s/build/lib.linux-x86_64-3.8" % (get.workDIR(), get.srcVERSION()))
|
||||
autotools.make("-C docs html")
|
||||
|
||||
def install():
|
||||
pythonmodules.install(pyVer="3")
|
||||
# install header files
|
||||
pisitools.insinto("/usr/include/python3.8/Imaging/", "src/libImaging/*.h")
|
||||
# install documentation
|
||||
pisitools.dohtml("docs/_build/html/*")
|
||||
|
||||
# 2020-01-15 ToDo
|
||||
# * Add documentation
|
||||
|
||||
# 2020-04-08 ToDo
|
||||
# * After Qt5 version bump, extract qt5 bindings(python3-pillow-qt5)
|
||||
Reference in New Issue
Block a user