Package Details: python-tensorly 0.8.2-1

Git Clone URL: https://aur.archlinux.org/python-tensorly.git (read-only, click to copy)
Package Base: python-tensorly
Description: Simple and Fast Tensor Learning in Python
Upstream URL: https://tensorly.org/stable/home.html
Licenses: BSD
Submitter: deltaecho
Maintainer: iamawacko
Last Packager: iamawacko
Votes: 2
Popularity: 0.054456
First Submitted: 2018-04-29 04:54 (UTC)
Last Updated: 2024-06-10 19:28 (UTC)

Dependencies (12)

Required by (0)

Sources (1)

Latest Comments

yan12125 commented on 2023-01-30 07:12 (UTC)

Orphaned - not using it anymore

yan12125 commented on 2021-10-22 06:01 (UTC)

Here's an updated PKGBUILD with python2 dropped (it's already unsupported in version 0.3)

# -*- mode: shell-script -*-
# Maintainer: Dylon Edwards <deltaecho at archlinux dot us>

pkgname='python-tensorly'
pkgver=0.6.0
pkgrel=1
pkgdesc="Simple and Fast Tensor Learning in Python"
arch=('x86_64')
url="http://tensorly.org/stable/home.html"
license=('BSD')
depends=(
    python
)
makedepends=(
    python-setuptools
)
optdepends=(
    python-numpy
    python-pytorch
    python-tensorflow
)
checkdepends=(
    python-pytest
    ${optdepends[@]}
)
# skipped backend tests
# - mxnet: somehow some tests fail
# - cupy: needs a GPU for tests
# - jax: build fails (https://github.com/google/jax/issues/7712)
optdepends+=(
    mxnet
    python-cupy
    python-jax
)
changelog="${pkgname}.changelog"
source=("tensorly-${pkgver}.tar.gz::https://github.com/tensorly/tensorly/archive/${pkgver}.tar.gz")
sha256sums=('e36a9124efd34f76fc727b0c45e92655a256231b56897591ee0d451ada279262')

function build() {
    cd "tensorly-${pkgver}"
    python setup.py build
}

function check() {
    cd "tensorly-${pkgver}"

    for backend in numpy pytorch tensorflow; do
        echo Testing against the $backend backend
        TENSORLY_BACKEND=$backend pytest -v tensorly
    done
}

function package() {
    cd "tensorly-${pkgver}"
    python setup.py install --skip-build --root="$pkgdir" --optimize=1
}