[arch-commits] Commit in python-webtest/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Wed Apr 1 16:22:19 UTC 2020
Date: Wednesday, April 1, 2020 @ 16:22:19
Author: eschwartz
Revision: 609002
python-webtest: better PYTHONPATH hack for adding currentdir
The current specification doesn't work at all, since there is no
architecture-specific build/lib.* directory. But the fallback to $PYTHONPATH
has the effect, if PYTHONPATH is empty, of adding the current directory to the
PYTHONPATH, and this causes the egg-info to be picked up by pkg_resources and
avoid a DistributionNotFound.
Modified:
python-webtest/trunk/PKGBUILD
----------+
PKGBUILD | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-01 16:18:52 UTC (rev 609001)
+++ PKGBUILD 2020-04-01 16:22:19 UTC (rev 609002)
@@ -35,10 +35,10 @@
check() {
cd "$srcdir"/WebTest-$pkgver
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.8:$PYTHONPATH" nosetests3
+ PYTHONPATH=".:$PYTHONPATH" nosetests3
cd "$srcdir"/WebTest-$pkgver-py2
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" nosetests2
+ PYTHONPATH=".:$PYTHONPATH" nosetests2
}
package_python-webtest() {
More information about the arch-commits
mailing list