diff options
author | Philipp A | 2018-02-05 16:37:48 +0100 |
---|---|---|
committer | Philipp A | 2018-02-05 16:37:48 +0100 |
commit | 3813661b119d31aac5cfc55f558656a026377432 (patch) | |
tree | 1a385ecd86f0653c0479a8dfff16ac8afef055f8 | |
parent | 97159a52f8c838b636c6d2d37ae77c4ab7c02fb4 (diff) | |
download | aur-3813661b119d31aac5cfc55f558656a026377432.tar.gz |
edit pythonpath so pkg_resources doesn’t find the old version
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 6 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = snakemake pkgdesc = Python-based language and execution environment for GNU Make-like workflows pkgver = 4.5.1 - pkgrel = 2 + pkgrel = 3 url = https://snakemake.readthedocs.io arch = any license = MIT @@ -3,7 +3,7 @@ pkgname=snakemake pkgver=4.5.1 -pkgrel=2 +pkgrel=3 pkgdesc='Python-based language and execution environment for GNU Make-like workflows' arch=(any) url='https://snakemake.readthedocs.io' @@ -32,8 +32,10 @@ build() { package() { cd "$srcdir/$pkgname-$pkgver" - python setup.py install --skip-build -O1 --root="$pkgdir" + python setup.py install --skip-build -O1 --root="$pkgdir" || exit 1 + local pyver=$(python -c 'import sys; print("{}.{}".format(*sys.version_info[:2]))') install -d "$pkgdir/etc/bash_completion.d" - "$pkgdir/usr/bin/snakemake" --bash-completion >"$pkgdir/etc/bash_completion.d/snakemake" + PYTHONPATH="$PKGDIR/usr/lib/python$pyver/site-packages:$PYTHONPATH" \ + "$pkgdir/usr/bin/snakemake" --bash-completion >"$pkgdir/etc/bash_completion.d/snakemake" } |