Package Details: python-llvmlite 0.30.0-3

Git Clone URL: https://aur.archlinux.org/python-llvmlite.git (read-only, click to copy)
Package Base: python-llvmlite
Description: Lightweight LLVM python binding for writing JIT compilers
Upstream URL: https://github.com/numba/llvmlite
Licenses: BSD
Submitter: mschu
Maintainer: mschu
Last Packager: mschu
Votes: 24
Popularity: 0.83
First Submitted: 2014-12-29 17:23
Last Updated: 2019-12-01 10:25

Latest Comments

1 2 3 4 5 6 ... Next › Last »

mschu commented on 2019-12-01 10:26

This package now uses llvm7 again until llvmlite supports the current llvm in the Arch repositories.

petronny commented on 2019-11-30 01:28

I just noticed we can use llvm7 to build this pacakge for now. It's supported.

plaxx commented on 2019-11-25 01:27

a821 commented on 2019-10-27 14:22

@plaxx: good catch! but if you have llvm 8.0 you don't the patch at all :-)

In order to upgrade to llvm 9, I needed to build and install a compatible package while I was still on 8. Only then I could upgrade to llvm 9.

iosonofabio commented on 2019-11-18 20:19

I can "from numba import jit" with that PKGBUILD and llvm-libs 9, however I later run into some mysterious jit issues with bytecode parsing...

petronny commented on 2019-11-04 08:29

I can confirm that python-llvmlite can be built with llvm 9. Here is the PKGBUILD which I'm using.

But I don't know how to perform a full test. I only tested import llvmlite and it works fine.

a821 commented on 2019-10-29 14:35

@mschu: I just compiled llvmlite and numba in a clean chroot using the patch below (plaxx's). It works for me, at least the example in numba's homepage (function monte_carlo_pi). FWIW, here are the compilation logs for llvmlite and numba

a821 commented on 2019-10-27 14:22

@plaxx: good catch! but if you have llvm 8.0 you don't the patch at all :-)

plaxx commented on 2019-10-23 15:51

Thanks for the updated PKGBUILD @a821 and the patch @krachyon. However, trying to compile the package on my system I realized there's a little logic mistake in the patch.

The final test should be (parenthesis to not the whole test not just the first test):

if not (out.startswith('9.0.') or out.startswith('8.0.') or out.startswith('7.0.') or out.startswith('7.1.')):

Otherwise you can't compile the package while still on 8.0.

llvm9.patch:

--- build.py_orig       2019-10-11 13:02:12.914644374 +0200
+++ build.py    2019-10-11 13:03:39.048201119 +0200
@@ -109,7 +109,7 @@

     out = out.decode('latin1')
     print(out)
-    if not (out.startswith('8.0.') or out.startswith('7.0.')
+    if not (out.startswith('9.0.') or out.startswith('8.0.') or out.startswith('7.0.')
             or out.startswith('7.1.')):
         msg = (
             "Building llvmlite requires LLVM 7.0+ Be sure to "

PKGBUILD.patch:

diff --git a/PKGBUILD b/PKGBUILD
index 82adbea..5b0c56d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,22 @@
 # Maintainer: Michael Schubert <mschu.dev at gmail>
 pkgname=python-llvmlite
 pkgver=0.30.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Lightweight LLVM python binding for writing JIT compilers"
 url="https://github.com/numba/llvmlite"
 arch=('i686' 'x86_64')
 license=('BSD')
-depends=('python' 'llvm-libs>=7.0.0' 'llvm-libs<8.1.0')
-makedepends=('cython' 'llvm>=7.0.0' 'llvm<8.1.0')
-source=("https://github.com/numba/llvmlite/archive/v$pkgver.tar.gz")
-sha256sums=('07b72dfdd8e6e5bc718fc7cd00517b94bf00caf29b387605adb0779c5c63dc28')
+depends=('python' 'llvm-libs>=7.0.0' 'llvm-libs<9.1.0')
+makedepends=('cython' 'llvm>=7.0.0' 'llvm<9.1.0')
+source=("https://github.com/numba/llvmlite/archive/v$pkgver.tar.gz"
+        "llvm9.patch")
+sha256sums=('07b72dfdd8e6e5bc718fc7cd00517b94bf00caf29b387605adb0779c5c63dc28'
+            '78ac24c070e21b8a5df22e683747fb953df167015361c1218714aec58816ce27')
+
+prepare() {
+  cd "$srcdir/llvmlite-$pkgver/ffi"
+  patch -p0 < ../../llvm9.patch
+}

 build() {
   cd "$srcdir/llvmlite-$pkgver"

a821 commented on 2019-10-13 10:51

I modified the PKGBUILD using krachyon's patch to test it and so far I confirm that it works. In case someone else wants to test it, here is the my PKGBUILD patch (copy krachyon's patch below and save it as llvm9.patch). @mschu feel free to use/change.

diff --git a/PKGBUILD b/PKGBUILD
index 82adbea..bc24767 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,10 +6,17 @@ pkgdesc="Lightweight LLVM python binding for writing JIT compilers"
 url="https://github.com/numba/llvmlite"
 arch=('i686' 'x86_64')
 license=('BSD')
-depends=('python' 'llvm-libs>=7.0.0' 'llvm-libs<8.1.0')
-makedepends=('cython' 'llvm>=7.0.0' 'llvm<8.1.0')
-source=("https://github.com/numba/llvmlite/archive/v$pkgver.tar.gz")
-sha256sums=('07b72dfdd8e6e5bc718fc7cd00517b94bf00caf29b387605adb0779c5c63dc28')
+depends=('python' 'llvm-libs>=7.0.0' 'llvm-libs<9.1.0')
+makedepends=('cython' 'llvm>=7.0.0' 'llvm<9.1.0')
+source=("https://github.com/numba/llvmlite/archive/v$pkgver.tar.gz"
+        "llvm9.patch")
+sha256sums=('07b72dfdd8e6e5bc718fc7cd00517b94bf00caf29b387605adb0779c5c63dc28'
+            '271acc57e6b40d00a3089badbc122a9d1505295936f6b042254057f3caf0c102')
+
+prepare() {
+  cd "$srcdir/llvmlite-$pkgver/ffi"
+  patch -p0 < ../../llvm9.patch
+}

 build() {
   cd "$srcdir/llvmlite-$pkgver"

mschu commented on 2019-10-12 17:06

I'd be happy to patch @krachyon's suggestion if people can confirm there are no issues with it.