diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -10,7 +10,7 @@ pkgbase = python-trame-vega makedepends = python-installer makedepends = python-setuptools makedepends = python-wheel - makedepends = nodejs-lts-fermium + makedepends = nodejs-lts-gallium makedepends = npm depends = python-trame-client source = trame-vega-2.0.3.tar.gz::https://github.com/Kitware/trame-vega/archive/v2.0.3.tar.gz @@ -8,19 +8,20 @@ arch=(any) url="https://github.com/Kitware/${_base}" license=('custom:BSD-3-clause') depends=(python-trame-client) -makedepends=(python-build python-installer python-setuptools python-wheel nodejs-lts-fermium npm) +makedepends=(python-build python-installer python-setuptools python-wheel nodejs-lts-gallium npm) checkdepends=(python-pytest) source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) sha512sums=('0eadb709ee1de01781bfa0085ead316cd35fbd014151f969af5dd410134d8e3f24ceff69635ea0899ca9f39f6e2aba56a9939982d3040a9c7a5cb4d4831ea113') prepare() { - sed -i 's/include/#include/' ${_base}-${pkgver}/MANIFEST.in + sed -i 's/^include/#include/' ${_base}-${pkgver}/MANIFEST.in } build() { cd ${srcdir}/${_base}-${pkgver}/vue-components npm install npm run build + cd ${srcdir}/${_base}-${pkgver} python -m build --wheel --skip-dependency-check --no-isolation } @@ -36,6 +37,7 @@ package() { cd ${_base}-${pkgver} PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") rm ${pkgdir}${site_packages}/trame/__init__.py rm ${pkgdir}${site_packages}/trame/modules/__init__.py |