From ba60bdb505e89e9c07fa7713a38d1ef31ea01fce Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 20 May 2018 20:40:07 +0200 Subject: [PATCH] python-peewee: fix pycompile_module, build C extensions --- srcpkgs/python-peewee/template | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/srcpkgs/python-peewee/template b/srcpkgs/python-peewee/template index 469cc4da347..094fbfa45a8 100644 --- a/srcpkgs/python-peewee/template +++ b/srcpkgs/python-peewee/template @@ -1,11 +1,12 @@ # Template file for 'python-peewee' pkgname=python-peewee version=3.3.4 -revision=1 +revision=2 wrksrc="peewee-${version}" build_style=python-module -pycompile_module="peewee" -hostmakedepends="python-setuptools python3-setuptools" +pycompile_module="playhouse peewee.py pwiz.py" +hostmakedepends="python-setuptools python3-setuptools python-Cython python3-Cython" +makedepends="python-devel python3-devel sqlite-devel" short_desc="Small and simple ORM for Python2" maintainer="johannes " license="MIT" @@ -13,7 +14,6 @@ homepage="https://github.com/coleifer/peewee" distfiles="https://github.com/coleifer/peewee/archive/${version}.tar.gz" checksum=b36f4aec9b29bc97237588534b020a4bc6c401986cc918be731490f28e05764e alternatives="peewee:pwiz:/usr/bin/pwiz.py2" -noarch=yes post_install() { vlicense LICENSE @@ -21,8 +21,7 @@ post_install() { python3-peewee_package() { alternatives="peewee:pwiz:/usr/bin/pwiz.py3" - noarch=yes - pycompile_module="peewee" + pycompile_module="playhouse peewee.py pwiz.py" short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/bin/*3