[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Thu Oct 25 17:49:50 UTC 2018
Date: Thursday, October 25, 2018 @ 17:49:49
Author: felixonmars
Revision: 399021
addpkg: python-memory-profiler 0.54-1
Added:
python-memory-profiler/
python-memory-profiler/repos/
python-memory-profiler/trunk/
python-memory-profiler/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Added: python-memory-profiler/trunk/PKGBUILD
===================================================================
--- python-memory-profiler/trunk/PKGBUILD (rev 0)
+++ python-memory-profiler/trunk/PKGBUILD 2018-10-25 17:49:49 UTC (rev 399021)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-memory-profiler
+pkgver=0.54
+pkgrel=1
+pkgdesc="A module for monitoring memory usage of a python program"
+url="https://github.com/pythonprofilers/memory_profiler"
+license=('BSD')
+arch=('any')
+depends=('python-psutil')
+makedepends=('python-setuptools')
+checkdepends=('python-numpy')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pythonprofilers/memory_profiler/archive/v$pkgver.tar.gz")
+sha512sums=('1ee26a0847b2a84d7ec67d48bd7428c27d6bd0c28196dc922af23745d012c6bca2847292ff2fb5803c83170b92b7850e6bd96a6a646f1a0a5507ea4bfbea0287')
+
+build() {
+ cd memory_profiler-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd memory_profiler-$pkgver
+ PYTHONPATH="$PWD"/build/lib make test
+}
+
+package() {
+ cd memory_profiler-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
More information about the arch-commits
mailing list