Skip to content
Snippets Groups Projects
Commit 6de011be authored by Antonio Rojas's avatar Antonio Rojas
Browse files

Drop python2

parent c0f73bde
No related branches found
Tags 5.8.0-2
No related merge requests found
# Maintainer: Sébastien Luttringer
pkgbase=python-psutil
pkgname=('python-psutil' 'python2-psutil')
pkgname=python-psutil
pkgver=5.9.0
pkgrel=1
pkgrel=2
arch=('x86_64')
pkgdesc='A cross-platform process and system utilities module for Python'
url='https://github.com/giampaolo/psutil'
license=('custom: BSD')
makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools')
depends=('python')
makedepends=('python-setuptools')
checkdepends=('net-tools' 'procps-ng' 'python-pytest')
source=("https://github.com/giampaolo/psutil/archive/release-$pkgver.tar.gz")
sha512sums=('8f105b84773c901a7969937bac2289281dc48f160f20e2d3d5f9b11f4a108fddf9864b477884c00ec33c3809f9f514a5f5faea623b7445dd8e637b96105a865b')
......@@ -16,10 +17,6 @@ build() {
cd psutil-release-$pkgver
python setup.py build --build-lib=build/python
python2 setup.py build --build-lib=build/python2
find build/python2 -type f -exec \
sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
}
check() {
......@@ -33,24 +30,11 @@ check() {
# PYTHONPATH="$PWD/build/python" python psutil/tests/__main__.py
}
package_python-psutil() {
pkgdesc='A cross-platform process and system utilities module for Python'
depends=('python')
package() {
cd psutil-release-$pkgver
python setup.py build --build-lib=build/python \
install --root="$pkgdir" --optimize=1
install -D -m 644 LICENSE "$pkgdir/"usr/share/licenses/$pkgname/LICENSE
}
package_python2-psutil() {
pkgdesc='A cross-platform process and system utilities module for Python2'
depends=('python2')
cd psutil-release-$pkgver
python2 setup.py build --build-lib=build/python2 \
install --root="$pkgdir" --optimize=1
install -D -m 644 LICENSE "$pkgdir/"usr/share/licenses/$pkgname/LICENSE
}
# vim:set ts=2 sw=2 et:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment