mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 00:42:58 +02:00
python-tempita: rebuild for Python 3.10
This commit is contained in:
parent
54da1aac66
commit
27c7d92ee8
1 changed files with 15 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-tempita'
|
# Template file for 'python-tempita'
|
||||||
pkgname=python-tempita
|
pkgname=python-tempita
|
||||||
version=0.5.2
|
version=0.5.2
|
||||||
revision=6
|
revision=7
|
||||||
wrksrc="Tempita-${version}"
|
wrksrc="Tempita-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
|
@ -15,6 +15,20 @@ license="MIT"
|
||||||
distfiles="${PYPI_SITE}/T/Tempita/Tempita-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/T/Tempita/Tempita-${version}.tar.gz"
|
||||||
checksum=cacecf0baa674d356641f1d406b8bff1d756d739c46b869a54de515d08e6fc9c
|
checksum=cacecf0baa674d356641f1d406b8bff1d756d739c46b869a54de515d08e6fc9c
|
||||||
|
|
||||||
|
post_patch() {
|
||||||
|
# setuptools no longer supports use_2to3
|
||||||
|
vsed -i setup.py -e '/use_2to3/d'
|
||||||
|
}
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
# This is pure python, no need for cross antics
|
||||||
|
python2.7 setup.py build --build-base=build-2.7
|
||||||
|
|
||||||
|
# Convert py2 syntax to py3 since setuptools no longer does it
|
||||||
|
2to3-${py3_ver} -w tempita
|
||||||
|
python3 setup.py build --build-base=build-${py3_ver}
|
||||||
|
}
|
||||||
|
|
||||||
python3-tempita_package() {
|
python3-tempita_package() {
|
||||||
depends="python3"
|
depends="python3"
|
||||||
pycompile_module="tempita"
|
pycompile_module="tempita"
|
||||||
|
|
Loading…
Add table
Reference in a new issue