Package Details: python-skia 87.5-1

Git Clone URL: (read-only, click to copy)
Package Base: python-skia
Description: Python binding to Skia Graphics Library (wheel)
Upstream URL:
Licenses: BSD
Submitter: alerque
Maintainer: alerque
Last Packager: alerque
Votes: 1
Popularity: 0.000000
First Submitted: 2020-10-02 11:28 (UTC)
Last Updated: 2024-03-28 10:17 (UTC)

Latest Comments

alerque commented on 2022-01-20 16:46 (UTC)

@fbrennan Don't get me wrong I see why the _py=$(pacman -Q python ...) hack is useful, but there are a couple of reasons it shouldn't be in this PKGBUILD by default. It runs afoul of both some Arch packaging guidelines and the way some AUR package helpers handle downloads vs. build environments. Fetching the upstream URL should not require the dependencies on the host system, and querying the host system for versions might run amuck when building in a chroot.

If it's a regular problem I can stick that code in the PKGBUILD in a comment for others to use when need arises. If we get into another dry spell again where upstream is behind locking to an old Python build is certainly an option too, although I think it would require patching to do properly so it could co-exist on a system with more than one python.

fbrennan commented on 2022-01-19 16:08 (UTC)

Here's a python39-skia:

# Maintainer: Caleb Maclennan <>
# Hacker: Fredrick Brennan <>

pkgdesc='Python binding to Skia Graphics Library (wheel)'
depends=(fontconfig opengl-driver python39)

# If anybody wants to muck around with the Chromium tree and figure out how to
# build skia from source on Arch I'm open to patches, but even after mucking
# around with ninja and Python2 and various patched bulid toolchains I have
# come up short of a way to build this against Arch packages. Drop a comment on
# the AUR page if you have ideas.

package() {
    export PIP_CONFIG_FILE=/dev/null
    warning "Using Python3.9!"
    warning 'The Python3.9 installation you use will need numpy installed separately e.g. `pip3.9 install --user numpy`!'
    python3.9 -m ensurepip
    pip3.9 install --isolated --root="$pkgdir" --ignore-installed --no-deps $_wheel
    python3.9 -O -m compileall "$pkgdir"

fbrennan commented on 2022-01-19 15:50 (UTC)

Non-functional package due to

When that is fixed, this package will still be non-functional without this patch:

diff --git a/PKGBUILD b/PKGBUILD
index a43a498..d2428a1 100644
@@ -11,7 +11,7 @@ license=(BSD)
 depends=(fontconfig opengl-driver python)
+_py=$(pacman -Q python|awk '{print $2}'|sed -e 's/\([0-9]\)\.\([0-9]\+\).*/cp\1\2/')