[arch-commits] Commit in python-profilestats/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Dec 24 18:01:46 UTC 2016
Date: Saturday, December 24, 2016 @ 18:01:45
Author: foutrelis
Revision: 201732
archrelease: copy trunk to community-staging-any
Added:
python-profilestats/repos/community-staging-any/
python-profilestats/repos/community-staging-any/PKGBUILD
(from rev 201731, python-profilestats/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-profilestats/repos/community-staging-any/PKGBUILD (from rev 201731, python-profilestats/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-24 18:01:45 UTC (rev 201732)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-profilestats
+pkgname=('python-profilestats' 'python2-profilestats')
+pkgver=2.0
+pkgrel=2
+pkgdesc="Decorator for profiling individual functions and converting profiling data to the kcachegrind/qcachegrind format."
+arch=('any')
+license=('BSD')
+url="https://pypi.python.org/pypi/profilestats"
+makedepends=('python-setuptools' 'python2-setuptools' 'pyprof2calltree' 'python2-pyprof2calltree' 'git')
+source=("git+https://github.com/hannosch/profilestats.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a profilestats{,-py2}
+}
+
+build() {
+ cd "$srcdir"/profilestats
+ python setup.py build
+
+ cd "$srcdir"/profilestats-py2
+ python2 setup.py build
+}
+
+package_python-profilestats() {
+ depends=('python-setuptools' 'pyprof2calltree')
+
+ cd profilestats
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-profilestats() {
+ depends=('python2-setuptools' 'python2-pyprof2calltree')
+
+ cd profilestats-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list