diff options
author | Aseem Athale | 2023-06-22 15:27:11 +0530 |
---|---|---|
committer | Aseem Athale | 2023-06-22 15:27:11 +0530 |
commit | 9b47ecf2842fe7e679fed2b1a5f929a719f0890f (patch) | |
tree | f55a1ee033b7ff975e032a4ac522103d710deb53 | |
parent | 61c31014f325bc795876b7c6bff45bed8ed056db (diff) | |
download | aur-9b47ecf2842fe7e679fed2b1a5f929a719f0890f.tar.gz |
python-autoscraper: Move away from calling setup.py directly
Signed-off-by: Aseem Athale <athaleaseem@gmail.com>
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 6 |
2 files changed, 6 insertions, 3 deletions
@@ -6,6 +6,9 @@ pkgbase = python-autoscraper arch = any license = MIT makedepends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel depends = python depends = python-requests depends = python-beautifulsoup4 @@ -8,18 +8,18 @@ arch=('any') url="https://github.com/alirezamika/${_base}" license=(MIT) depends=('python' 'python-requests' 'python-beautifulsoup4' 'python-lxml') -makedepends=('python-setuptools') +makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') # options=(!emptydirs) source=("$pkgname-$pkgver.tar.gz"::${url}/archive/refs/tags/v${pkgver}.tar.gz) sha512sums=('858aebc1163dd2d74433dff3cc0fba25d3a64b052c32842a5f0da2e305df3771d99292bc281a04120587a1dcf3cf386831b4d235114c1e4ea95c77ef25b6c5a3') build() { cd "${_base}-${pkgver}" - python setup.py build + python -m build --wheel --no-isolation } package() { cd "${_base}-${pkgver}" - python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } |