diff options
author | Martino Pilia | 2018-03-23 12:10:21 +0100 |
---|---|---|
committer | Martino Pilia | 2018-03-23 12:10:21 +0100 |
commit | 126c7cee42391105c69a6bc6a29d65e1d5402a67 (patch) | |
tree | 84aa99daf54dba08c9804314efbed2be36e3511f | |
parent | dc55f287709a5b4e517853452c9e0f594ae4a65e (diff) | |
download | aur-126c7cee42391105c69a6bc6a29d65e1d5402a67.tar.gz |
missing Python interface file (?)
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 13 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = python2-pyca-git pkgdesc = Python for Computational Anatomy pkgver = 0.01.r434.gf31ab43 - pkgrel = 3 + pkgrel = 4 url = http://bitbucket.org/scicompanat/pyca arch = x86_64 license = BSD @@ -2,7 +2,7 @@ _name=pyca pkgname=python2-pyca-git pkgver=0.01.r434.gf31ab43 -pkgrel=3 +pkgrel=4 pkgdesc="Python for Computational Anatomy" arch=('x86_64') url="http://bitbucket.org/scicompanat/pyca" @@ -52,6 +52,17 @@ package() { cd "$srcdir/$_name/build" make install DESTDIR="$pkgdir" + # for some reason this is not generated automatically + cat > $pkgdir/usr/lib/python2.7/site-packages/PyCA/_Core.py <<-EOF + def __bootstrap__(): + global __bootstrap__, __loader__, __file__ + import sys, pkg_resources, imp + __file__ = pkg_resources.resource_filename(__name__, '_Core.so') + __loader__ = None; del __bootstrap__, __loader__ + imp.load_dynamic(__name__,__file__) + __bootstrap__() + EOF + install -D -m644 $srcdir/$_name/Copyright.txt \ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |