Package Details: python-cppimport 22.08.02-2

Git Clone URL: https://aur.archlinux.org/python-cppimport.git (read-only, click to copy)
Package Base: python-cppimport
Description: Import C++ files directly from Python!
Upstream URL: https://github.com/tbenthompson/cppimport
Licenses: MIT
Submitter: carlosal1015
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 0
Popularity: 0.000000
First Submitted: 2023-01-15 01:03 (UTC)
Last Updated: 2023-10-13 19:46 (UTC)

Latest Comments

carlosal1015 commented on 2023-10-13 19:35 (UTC)

Thanks, I did not notice because I compiled in a cleanchroot without python-setuptools-scm. Now I installed and I report the same message error. I will export one variable in order to keep the same sources.

MartinDiehl commented on 2023-10-10 11:12 (UTC)

The build does not work for me, error is LookupError: setuptools-scm was unable to detect version for /home/m/.cache/yay/python-cppimport/src/cppimport-22.08.02.

the following PKGBUILD works.

# Maintainer: Carlos Aznarán <caznaranl@uni.pe>

pkgver=22.8.2
pkgrel=1
pkgname=python-cppimport
_name=${pkgname#python-}
pkgdesc="Import C++ files directly from Python!"
arch=(any)
url="https://github.com/tbenthompson/cppimport"
license=(MIT)
depends=(python-mako pybind11 python-filelock)
makedepends=(python-build python-installer python-setuptools python-wheel)
checkdepends=(python-pytest)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('bbb4957102db41bc99ad72c233bce92f9d1fd91be352fc07878c4361033a401f')

build() {
    cd "$_name-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$_name-$pkgver"
    PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl
    install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}