You are not logged in.

#1 2024-12-28 03:54:43

tugoese
Member
Registered: 2023-10-15
Posts: 26

[SOLVED] python-lesscpy 0.15.1-2: No module named build

# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: kureta <kureta@gmail.com>
# Contributor: Renato Candido <renatocan@gmail.com>
_base=lesscpy
pkgname=python-${_base}
pkgver=0.15.1
pkgrel=2
pkgdesc="Python LESS compiler"
url="https://github.com/${_base}/${_base}"
depends=(python-ply python-six)
makedepends=(python-build python-installer python-setuptools python-wheel)
license=(MIT)
arch=(any)
source=(https://pypi.org/packages/source/${_base::1}/${_base}/${_base}-${pkgver}.tar.gz)
sha512sums=('3a88c14d1e47a28d5e427e9cd0e1c2553dd3fc937085c54975c3e2612d623673e0a2fe05d7bb60dcdeda0f352b1be0354595ba9fac38483e7ab0a21529036e65')

build() {
  cd ${_base}-${pkgver}
  python -m build --wheel --skip-dependency-check --no-isolation
}

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}"
}
$ makepkg -si
==> Making package: python-lesscpy 0.15.1-2 (Sat 28 Dec 2024 11:53:36 AM WITA)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found lesscpy-0.15.1.tar.gz
==> Validating source files with sha512sums...
    lesscpy-0.15.1.tar.gz ... Passed
==> Extracting sources...
  -> Extracting lesscpy-0.15.1.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
/usr/bin/python: No module named build
==> ERROR: A failure occurred in build().
    Aborting...

Last edited by tugoese (2024-12-28 05:25:52)

Offline

#2 2024-12-28 04:42:31

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,323

Re: [SOLVED] python-lesscpy 0.15.1-2: No module named build

Most likely explanation is that your system is not fully up to date.

Offline

Board footer

Powered by FluxBB