diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-26 08:32:23 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-26 08:32:23 +0000 |
commit | 9f0b1cfc7320fd8a80eea0bd402c475e08d24c86 (patch) | |
tree | bf251114db1feeaa553954d917da480ac5131ca9 /main/py-libvirt | |
parent | 41a6434cdba6b3e3b66003b9b6d578108fb8b4e8 (diff) | |
download | aports-9f0b1cfc7320fd8a80eea0bd402c475e08d24c86.tar.bz2 aports-9f0b1cfc7320fd8a80eea0bd402c475e08d24c86.tar.xz |
main/py-libvirt: moved install from package() to _py()
Diffstat (limited to 'main/py-libvirt')
-rw-r--r-- | main/py-libvirt/APKBUILD | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/main/py-libvirt/APKBUILD b/main/py-libvirt/APKBUILD index 167b30a6b6..d2e392ebfa 100644 --- a/main/py-libvirt/APKBUILD +++ b/main/py-libvirt/APKBUILD @@ -2,7 +2,7 @@ pkgname=py-libvirt _pkgname=libvirt-python pkgver=2.0.0 -pkgrel=0 +pkgrel=1 pkgdesc="The libvirt virtualization API python binding" url="http://libvirt.org" arch="noarch" @@ -24,8 +24,7 @@ build() { package() { cd "$builddir" - python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1 - python3 setup.py install --root=$pkgdir/ --optimize=1 || return 1 + mkdir -p "$pkgdir" } @@ -34,10 +33,9 @@ _py() { pkgdesc="$pkgdesc - $python" arch="all" install_if="$pkgname=$pkgver-r$pkgrel $python" - local dir=$($python -c 'import sysconfig; print(sysconfig.get_path("stdlib"))') - - mkdir -p "$subpkgdir"${dir} - mv "$pkgdir"${dir}/* "$subpkgdir"${dir} + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { |