Package Details: python2-cairo 1.19.1-2

Git Clone URL: https://aur.archlinux.org/python2-cairo.git (read-only, click to copy)
Package Base: python2-cairo
Description: Python bindings for the cairo graphics library
Upstream URL: https://pycairo.readthedocs.io/en/latest/
Licenses: MPL, LGPL2.1
Submitter: Archange
Maintainer: hexd
Last Packager: hexd
Votes: 18
Popularity: 0.26
First Submitted: 2022-05-15 08:51 (UTC)
Last Updated: 2023-06-19 22:51 (UTC)

Latest Comments

showipatlogon commented on 2024-01-22 15:54 (UTC) (edited on 2024-01-22 15:55 (UTC) by showipatlogon)

In my case it doesn't compile because the PYTHONHOME variable isn't declared. So to fix this I have to modify the PKGBUILD file by adding that declaration in the prepare() section as such:

prepare() {

  export PYTHONHOME=/usr

  cd "pycairo-$pkgver"
  sed -i 's/raise.*Python 2.*$/pass/' setup.py
}

Not sure if that is something you would like to add... More an FYI for those who may have the same issue. Thx !

FabioLolix commented on 2023-06-18 15:20 (UTC)

Hello, git is not needed as makedepends

hexd commented on 2023-04-08 06:14 (UTC)

The change log in https://pycairo.readthedocs.io/en/latest/changelog.html tells the latest version to support Python 2 was v1.18.2. However,

git diff v1.18.2..v1.19.0

Shows that only a few things changed, including docs, a typeshed fix for Context.set_dash (+ a test for this), a Windows NT DLL hack for Python 3.8+, and an explicit removal of Python 2 support (in setup.py and docs, not in the library contents). And:

git diff v1.19.0..v1.19.1

Shows only changes explicitly for Python 3 (with a version check) and PyPy happened. And:

git diff v1.19.1..v1.20.0

Removes many Python version checks, so this is the first version to truly assume Python 3.

So, yes, v1.19.1 is compatible with Python 2, but this required a small tweak to bypass a check in setup.py. That said, I've just upgraded this package to v1.19.1.

qubidt commented on 2023-04-03 11:58 (UTC)

note that the last version of cairo to support python2 was v1.19.1