Skip to content

Commit

Permalink
fix: use build/install instead of setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
gardar authored Nov 7, 2023
1 parent b617c69 commit b4c445d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ansible-cmdb/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,17 @@ arch=('any')
url="https://github.com/fboender/ansible-cmdb"
license=('GPL3')
depends=('python' 'python-mako' 'python-pyyaml')
makedepends=('python-setuptools' 'git')
makedepends=('python-setuptools' 'git' 'python-build' 'python-installer' 'python-wheel')
# source=("${pkgname}-${pkgver}-${pkgrel}.tar.gz::${url}/archive/${pkgver}.tar.gz")
source=("git+https://github.com/gardar/ansible-cmdb.git#branch=fix-build")
sha256sums=('SKIP')

build() {
cd "$srcdir/${pkgname}"
python setup.py build
python -m build
}

package() {
cd "$srcdir/${pkgname}"
PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --optimize=1
python setup.py install --root="$pkgdir/" --optimize=1
python -m installer --destdir="$pkgdir" dist/*.whl
}

0 comments on commit b4c445d

Please sign in to comment.