[arch-commits] Commit in python-memory-profiler/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Dec 4 22:19:08 UTC 2020


    Date: Friday, December 4, 2020 @ 22:19:07
  Author: felixonmars
Revision: 770138

upgpkg: python-memory-profiler 0.58.0-1

Modified:
  python-memory-profiler/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-04 22:18:53 UTC (rev 770137)
+++ PKGBUILD	2020-12-04 22:19:07 UTC (rev 770138)
@@ -1,8 +1,8 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-memory-profiler
-pkgver=0.57
-pkgrel=3
+pkgver=0.58.0
+pkgrel=1
 pkgdesc="A module for monitoring memory usage of a python program"
 url="https://github.com/pythonprofilers/memory_profiler"
 license=('BSD')
@@ -10,8 +10,8 @@
 depends=('python-psutil')
 makedepends=('python-setuptools')
 checkdepends=('python-numpy')
-source=("https://github.com/pythonprofilers/memory_profiler/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('c6e2f755656dc820dfc2cf7a659dc319b3d1aa0df144ac6a08db35f4b38a90a9b994cf9c8320b8370f51c97e0d0bf2f9c4a3ab070b4934879f8e579b732e426a')
+source=("https://github.com/pythonprofilers/memory_profiler/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('5c02933acffc05f42d2ae98a069d36563e1d26515d439d94ad3903960dd06cd378faae3000b26c022770e71e83db6f770ceaf63cabb92f4159bda0ff9cc4e849')
 
 build() {
   cd memory_profiler-$pkgver
@@ -20,7 +20,9 @@
 
 check() {
   cd memory_profiler-$pkgver
-  PYTHONPATH="$PWD"/build/lib make test
+  # Hack entry points by installing it
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" PATH="$PWD/tmp_install/usr/bin:$PATH" make test
 }
 
 package() {



More information about the arch-commits mailing list