Package Base Details: python-cheetah3

Git Clone URL: (read-only, click to copy)
Submitter: alexbrinister
Maintainer: alexbrinister (fryfrog)
Last Packager: fryfrog
Votes: 7
Popularity: 2.18
First Submitted: 2018-07-30 02:37
Last Updated: 2020-05-19 15:31

Latest Comments

« First ‹ Previous 1 2

stardiviner commented on 2019-10-01 09:59

I got following error when installing:

running install_scripts creating /home/stardiviner/.cache/yay/python-cheetah3/pkg/python-cheetah3/home/stardiviner/.virtualenvs/python3.7/bin copying build/scripts-3.7/cheetah-analyze -> /home/stardiviner/.cache/yay/python-cheetah3/pkg/python-cheetah3/home/stardiviner/.virtualenvs/python3.7/bin copying build/scripts-3.7/cheetah -> /home/stardiviner/.cache/yay/python-cheetah3/pkg/python-cheetah3/home/stardiviner/.virtualenvs/python3.7/bin copying build/scripts-3.7/cheetah-compile -> /home/stardiviner/.cache/yay/python-cheetah3/pkg/python-cheetah3/home/stardiviner/.virtualenvs/python3.7/bin changing mode of /home/stardiviner/.cache/yay/python-cheetah3/pkg/python-cheetah3/home/stardiviner/.virtualenvs/python3.7/bin/cheetah-analyze to 755 changing mode of /home/stardiviner/.cache/yay/python-cheetah3/pkg/python-cheetah3/home/stardiviner/.virtualenvs/python3.7/bin/cheetah to 755 changing mode of /home/stardiviner/.cache/yay/python-cheetah3/pkg/python-cheetah3/home/stardiviner/.virtualenvs/python3.7/bin/cheetah-compile to 755 mv: cannot stat '/home/stardiviner/.cache/yay/python-cheetah3/pkg/python-cheetah3/usr/bin/cheetah': No such file or directory ==> ERROR: A failure occurred in package(). Aborting... Error making: python-cheetah3

alexbrinister commented on 2019-08-11 18:23

@jamespharvey20 thank you for the patch, I have updated to the latest version and renamed the binaries to prevent clashing with python2-cheetah.

jamespharvey20 commented on 2019-08-11 02:05

Patch below, for your consideration, with these changes:

  • Update from 3.1.0 to 3.2.3
  • Add depends of python-setuptools, required by the new version (which requires itself requires python so no longer needs to be listed
  • Removes provides/conflicts of cheetah3 and python-cheetah3, which I believe are based off community/python2-cheetah, but as far as I can tell, cheetah3 and python-cheetah3 never existed
  • Removes usage of msg and msg2, which although are taken from community/python2-cheetah, their usage is discouraged
  • Simplifies the installation of LICENSE, since already in the directory being specified
  • Renames the 3 binaries, per suggestion of @bitfehler to prevent conflict with community/python2-cheetah


diff --git a/PKGBUILD b/PKGBUILD
index [`cf460e7`]( 100644
@@ -2,18 +2,16 @@

 pkgdesc="A Python 3-powered template engine and code generator"
-provides=('cheetah3' 'python-cheetah3')
-conflicts=('cheetah3' 'python-cheetah3')

 build() {
   cd "${srcdir}/${_name}-${pkgver}"
@@ -21,10 +19,12 @@ build() {

 package() {
-  msg "Install..."
   cd "${srcdir}/${_name}-${pkgver}"
   python install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

-  msg2 "Install copyright resources in /usr/share/licenses/${pkgname}..."
-  install -Dm644 "${srcdir}/${_name}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  # Avoid conflict with python2-cheetah
+  for name in cheetah cheetah-analyze cheetah-compile; do
+    mv "${pkgdir}/usr/bin/${name}"{,3}
+  done

alexbrinister commented on 2019-06-15 13:49

@bitfehler, that's a good idea. I will have an update out soon.

bitfehler commented on 2019-04-15 11:27


I was wondering: how would you feel about renaming the three executables that get install into /usr/bin to cheetah3, cheetah-analyze3, and cheetah-compile3 respectively? This is what Debian does (see ), and then the package would no longer conflict with python2-cheetah, allowing a side-by-side installation.