blob: bb7058b94c5dc73dc6c69ba98ef70c08af74ad33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Wil Thomason <wbthomason at cs dot cornell dot edu>
pkgname='python-scalene-git'
pkgver=r2589.d3b46ac
pkgrel=1
pkgdesc='Scalene is a high-performance, high-precision CPU and memory profiler for Python'
arch=('any')
url='https://github.com/emeryberger/scalene'
license=('Apache-2.0')
depends=('python>=3.7' 'python-numpy' 'python-cloudpickle' 'python-rich' 'python-pynvml' 'python-gitpython')
makedepends=('python-setuptools' 'make' 'clang' 'git')
source=("${pkgname}::git+https://github.com/plasma-umass/scalene.git"
"git+https://github.com/emeryberger/Heap-Layers")
sha256sums=('SKIP' 'SKIP')
provides=('python-scalene')
pkgver() {
cd "$srcdir/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname}"
ln -s "$srcdir/Heap-Layers" Heap-Layers
}
build() {
cd "$srcdir/${pkgname}"
make
}
package() {
cd "$srcdir/${pkgname}"
install -Dm755 scalene/libscalene.so ${pkgdir}/usr/lib/libscalene.so
python setup.py install --root="${pkgdir}" --optimize=1
}
|