set scipy to an optional dependency only for mingw-w64

This commit is contained in:
ciciwu
2022-04-29 11:15:45 +08:00
parent 4f0cbcef05
commit a65415ea3f

View File

@@ -5,12 +5,14 @@ pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
pkgver=0.12.4
pkgrel=1
pkgdesc='A pure-Python graphics library for PyQt5/PyQt6/PySide2/PySide6.'
pkgdesc='Scientific Graphics and GUI Library for Python.'
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
url="https://www.pyqtgraph.org/"
license=('MIT')
depends=("${MINGW_PACKAGE_PREFIX}-python-pyqt5" "${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-numpy" "${MINGW_PACKAGE_PREFIX}-python-scipy" "${MINGW_PACKAGE_PREFIX}-python-pyopengl")
depends=("${MINGW_PACKAGE_PREFIX}-python-pyqt5" "${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-numpy" "${MINGW_PACKAGE_PREFIX}-python-pyopengl"
$([[ "$_enable_scipy" == "yes" ]] && echo "${MINGW_PACKAGE_PREFIX}-python-scipy"))
# "${MINGW_PACKAGE_PREFIX}-python-scipy" is optional
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
source=("https://github.com/pyqtgraph/pyqtgraph/archive/refs/tags/pyqtgraph-${pkgver}.tar.gz")
sha256sums=('5b3140b0f2efc4e821fe101baf72279e277b3d216cbd65ba0195c7ffb4029394')