[arch-commits] Commit in python-msgpack/trunk (PKGBUILD)
Johannes Löthberg
demize at archlinux.org
Fri Dec 25 02:21:17 UTC 2020
Date: Friday, December 25, 2020 @ 02:21:17
Author: demize
Revision: 789437
Fix reproducability
When check() is run, py.test would generate a .pyc containing the path to the
python file in the /build directory. repro(1) currently always passes
--nocheck due to a bug, meaning that py.test is never called. This resulted in
different paths ending up in the .pyc files.
Modified:
python-msgpack/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-25 02:20:18 UTC (rev 789436)
+++ PKGBUILD 2020-12-25 02:21:17 UTC (rev 789437)
@@ -3,7 +3,7 @@
pkgname=python-msgpack
pkgver=1.0.2
-pkgrel=1
+pkgrel=2
pkgdesc='MessagePack serializer implementation for Python'
url='https://github.com/msgpack/msgpack-python'
@@ -19,11 +19,6 @@
sha512sums=('8e53c57312beed0cbc24b681b605fa8b832469b1aab035aaa187b2887e7865ff653a3f358dab2f3e773c657cf0af4264d4e530639ef23934d4b95d9fa2a7ee9a')
-prepare() {
- cd msgpack-python-$pkgver
- printf '[build]\nbuild_lib = build/lib.linux' >> setup.cfg
-}
-
build() {
cd msgpack-python-$pkgver
python setup.py build
@@ -31,7 +26,7 @@
check() {
cd msgpack-python-$pkgver
- PYTHONPATH=$PWD/build/lib.linux py.test test
+ PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(printf '%s\n' $PWD/build/* | paste -sd:) py.test test
}
package() {
More information about the arch-commits
mailing list