python-backports.functools_lru_cache: avoid collision with python-backports

Regression introduced with backports.functools-lru-cache-1.4.

Fixes #7175.
This commit is contained in:
Alessio Sergi 2017-07-29 11:54:42 +02:00
parent 88ca5ecde6
commit 6674e7af7d
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'python-backports.functools_lru_cache'
pkgname=python-backports.functools_lru_cache
version=1.4
revision=1
revision=2
noarch=yes
wrksrc="backports.functools_lru_cache-${version}"
build_style=python2-module
@ -20,3 +20,7 @@ pre_build() {
-e "/setuptools_scm/d" \
-e "s/use_scm_version=True,/version=\"${version}\",/"
}
post_install() {
# namespace provided by python-backports package
rm -f ${DESTDIR}/usr/lib/python*/site-packages/backports/__init__.py
}