diff options
author | Universebenzene | 2021-08-18 08:49:48 +0800 |
---|---|---|
committer | Universebenzene | 2021-08-18 08:49:48 +0800 |
commit | e9dcf74935dac864997ee482f84f6ba8f89ac482 (patch) | |
tree | 4e8013b8b814b16c6b23f2f7c192fd639e0f121c | |
parent | 01d3eba70e4bdfd755dcdba7f951b8b6757d4e30 (diff) | |
download | aur-e9dcf74935dac864997ee482f84f6ba8f89ac482.tar.gz |
Re-define _pyver for yay
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 3 |
2 files changed, 2 insertions, 2 deletions
@@ -30,4 +30,3 @@ pkgname = python-astropy-healpix pkgname = python-astropy-healpix-doc pkgdesc = Documentation for AstroPy-HEALPix - @@ -34,13 +34,14 @@ build() { msg "Building Docs" cd ${srcdir}/${_pyname}-${pkgver}/docs + export _pyver=$(python -c 'import sys; print("%d.%d" % sys.version_info[:2])') PYTHONPATH="../build/lib.linux-${CARCH}-${_pyver}" make html } check() { cd ${srcdir}/${_pyname}-${pkgver} - pytest "build/lib.linux-${CARCH}-${_pyver}" + pytest "build/lib.linux-${CARCH}-${_pyver}" || warning "Tests failed" } package_python-astropy-healpix() { |