public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: dev-python/llvmlite/, dev-python/llvmlite/files/
@ 2022-08-07  9:07 Andrew Ammerlaan
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Ammerlaan @ 2022-08-07  9:07 UTC (permalink / raw
  To: gentoo-commits

commit:     d2f198644a8ad262dc36fc03e4076f44a4303a31
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  7 09:06:54 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sun Aug  7 09:06:54 2022 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=d2f19864

dev-python/llvmlite: drop 0.37.0-r1, 0.38.0-r1

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 .../llvmlite/files/llvmlite-0.37.0-llvm12.patch    | 91 ---------------------
 .../llvmlite/files/llvmlite-0.38.0-llvm12.patch    | 92 ----------------------
 dev-python/llvmlite/llvmlite-0.37.0-r1.ebuild      | 62 ---------------
 dev-python/llvmlite/llvmlite-0.38.0-r1.ebuild      | 62 ---------------
 4 files changed, 307 deletions(-)

diff --git a/dev-python/llvmlite/files/llvmlite-0.37.0-llvm12.patch b/dev-python/llvmlite/files/llvmlite-0.37.0-llvm12.patch
deleted file mode 100644
index ed104ab99..000000000
--- a/dev-python/llvmlite/files/llvmlite-0.37.0-llvm12.patch
+++ /dev/null
@@ -1,91 +0,0 @@
-From 1d928ebcd59b23b5050234a2bf71f9be7f5f6bd1 Mon Sep 17 00:00:00 2001
-From: Richard Barnes <rbarnes@umn.edu>
-Date: Wed, 1 Dec 2021 10:29:08 -0700
-Subject: [PATCH] Enable LLVM-12 and LLVM-13
-
----
- ffi/build.py                   |  5 ++---
- ffi/targets.cpp                |  2 ++
- llvmlite/tests/test_binding.py | 19 ++++++++++++++++---
- 3 files changed, 20 insertions(+), 6 deletions(-)
-
-diff --git a/ffi/build.py b/ffi/build.py
-index 6408bf5f..95e33c64 100755
---- a/ffi/build.py
-+++ b/ffi/build.py
-@@ -162,9 +162,8 @@ def main_posix(kind, library_ext):
-         print(msg)
-         print(warning + '\n')
-     else:
--
--        if not out.startswith('11'):
--            msg = ("Building llvmlite requires LLVM 11.x.x, got "
-+        if not (out.startswith('11') or out.startswith('12') or out.startswith('13')):
-+            msg = ("Building llvmlite requires LLVM 11-13.x.x, got "
-                    "{!r}. Be sure to set LLVM_CONFIG to the right executable "
-                    "path.\nRead the documentation at "
-                    "http://llvmlite.pydata.org/ for more information about "
-diff --git a/ffi/targets.cpp b/ffi/targets.cpp
-index 1ce472c2..4ba33e79 100644
---- a/ffi/targets.cpp
-+++ b/ffi/targets.cpp
-@@ -233,6 +233,8 @@ LLVMPY_CreateTargetMachine(LLVMTargetRef T,
-         rm = Reloc::DynamicNoPIC;
- 
-     TargetOptions opt;
-+#if LLVM_VERSION_MAJOR < 12
-     opt.PrintMachineCode = PrintMC;
-+#endif
- 
-     bool jit = JIT;
-diff --git a/llvmlite/tests/test_binding.py b/llvmlite/tests/test_binding.py
-index 80495787..fee2372a 100644
---- a/llvmlite/tests/test_binding.py
-+++ b/llvmlite/tests/test_binding.py
-@@ -18,6 +18,16 @@
- from llvmlite.tests import TestCase
- 
- 
-+def clean_string_whitespace(x: str) -> str:
-+    # Remove trailing whitespace from the end of each line
-+    x = re.sub(r"\s+$", "", x, flags=re.MULTILINE)
-+    # Remove intermediate blank lines
-+    x = re.sub(r"\n\s*\n", r"\n", x, flags=re.MULTILINE)
-+    # Remove extraneous whitespace from the beginning and end of the string
-+    x = x.strip()
-+    return x
-+
-+
- # arvm7l needs extra ABI symbols to link successfully
- if platform.machine() == 'armv7l':
-     llvm.load_library_permanently('libgcc_s.so.1')
-@@ -158,7 +168,7 @@ def no_de_locale():
- target triple = "unknown-unknown-unknown"
- target datalayout = ""
- 
--define i32 @"foo"() 
-+define i32 @"foo"()
- {
- "<>!*''#":
-   ret i32 12345
-@@ -424,7 +434,10 @@ def test_nonalphanum_block_name(self):
-         bd = ir.IRBuilder(fn.append_basic_block(name="<>!*''#"))
-         bd.ret(ir.Constant(ir.IntType(32), 12345))
-         asm = str(mod)
--        self.assertEqual(asm, asm_nonalphanum_blocklabel)
-+        self.assertEqual(
-+            clean_string_whitespace(asm),
-+            clean_string_whitespace(asm_nonalphanum_blocklabel)
-+        )
- 
-     def test_global_context(self):
-         gcontext1 = llvm.context.get_global_context()
-@@ -509,7 +522,7 @@ def test_set_option(self):
-     def test_version(self):
-         major, minor, patch = llvm.llvm_version_info
-         # one of these can be valid
--        valid = [(11,)]
-+        valid = [(11,), (12,), (13,)]
-         self.assertIn((major,), valid)
-         self.assertIn(patch, range(10))
- 

diff --git a/dev-python/llvmlite/files/llvmlite-0.38.0-llvm12.patch b/dev-python/llvmlite/files/llvmlite-0.38.0-llvm12.patch
deleted file mode 100644
index 6630652c2..000000000
--- a/dev-python/llvmlite/files/llvmlite-0.38.0-llvm12.patch
+++ /dev/null
@@ -1,92 +0,0 @@
-From 1d928ebcd59b23b5050234a2bf71f9be7f5f6bd1 Mon Sep 17 00:00:00 2001
-From: Richard Barnes <rbarnes@umn.edu>
-Date: Wed, 1 Dec 2021 10:29:08 -0700
-Subject: [PATCH] Enable LLVM-12 and LLVM-13
-
----
- ffi/build.py                   |  5 ++---
- ffi/targets.cpp                |  2 ++
- llvmlite/tests/test_binding.py | 19 ++++++++++++++++---
- 3 files changed, 20 insertions(+), 6 deletions(-)
-
-diff --git a/ffi/build.py b/ffi/build.py
-index 6408bf5f..95e33c64 100755
---- a/ffi/build.py
-+++ b/ffi/build.py
-@@ -162,9 +162,8 @@ def main_posix(kind, library_ext):
-         print(msg)
-         print(warning + '\n')
-     else:
--
--        if not out.startswith('11'):
--            msg = ("Building llvmlite requires LLVM 11.x.x, got "
-+        if not (out.startswith('11') or out.startswith('12') or out.startswith('13')):
-+            msg = ("Building llvmlite requires LLVM 11-13.x.x, got "
-                    "{!r}. Be sure to set LLVM_CONFIG to the right executable "
-                    "path.\nRead the documentation at "
-                    "http://llvmlite.pydata.org/ for more information about "
-diff --git a/ffi/targets.cpp b/ffi/targets.cpp
-index 1ce472c2..4ba33e79 100644
---- a/ffi/targets.cpp
-+++ b/ffi/targets.cpp
-@@ -233,7 +233,9 @@ LLVMPY_CreateTargetMachine(LLVMTargetRef T,
-         rm = Reloc::DynamicNoPIC;
- 
-     TargetOptions opt;
-+#if LLVM_VERSION_MAJOR < 12
-     opt.PrintMachineCode = PrintMC;
-+#endif
-     opt.MCOptions.ABIName = ABIName;
- 
-     bool jit = JIT;
-diff --git a/llvmlite/tests/test_binding.py b/llvmlite/tests/test_binding.py
-index 80495787..fee2372a 100644
---- a/llvmlite/tests/test_binding.py
-+++ b/llvmlite/tests/test_binding.py
-@@ -18,6 +18,16 @@
- from llvmlite.tests import TestCase
- 
- 
-+def clean_string_whitespace(x: str) -> str:
-+    # Remove trailing whitespace from the end of each line
-+    x = re.sub(r"\s+$", "", x, flags=re.MULTILINE)
-+    # Remove intermediate blank lines
-+    x = re.sub(r"\n\s*\n", r"\n", x, flags=re.MULTILINE)
-+    # Remove extraneous whitespace from the beginning and end of the string
-+    x = x.strip()
-+    return x
-+
-+
- # arvm7l needs extra ABI symbols to link successfully
- if platform.machine() == 'armv7l':
-     llvm.load_library_permanently('libgcc_s.so.1')
-@@ -158,7 +168,7 @@ def no_de_locale():
- target triple = "unknown-unknown-unknown"
- target datalayout = ""
- 
--define i32 @"foo"() 
-+define i32 @"foo"()
- {
- "<>!*''#":
-   ret i32 12345
-@@ -424,7 +434,10 @@ def test_nonalphanum_block_name(self):
-         bd = ir.IRBuilder(fn.append_basic_block(name="<>!*''#"))
-         bd.ret(ir.Constant(ir.IntType(32), 12345))
-         asm = str(mod)
--        self.assertEqual(asm, asm_nonalphanum_blocklabel)
-+        self.assertEqual(
-+            clean_string_whitespace(asm),
-+            clean_string_whitespace(asm_nonalphanum_blocklabel)
-+        )
- 
-     def test_global_context(self):
-         gcontext1 = llvm.context.get_global_context()
-@@ -509,7 +522,7 @@ def test_set_option(self):
-     def test_version(self):
-         major, minor, patch = llvm.llvm_version_info
-         # one of these can be valid
--        valid = [(11,)]
-+        valid = [(11,), (12,), (13,)]
-         self.assertIn((major,), valid)
-         self.assertIn(patch, range(10))
- 

diff --git a/dev-python/llvmlite/llvmlite-0.37.0-r1.ebuild b/dev-python/llvmlite/llvmlite-0.37.0-r1.ebuild
deleted file mode 100644
index 607c1bb0b..000000000
--- a/dev-python/llvmlite/llvmlite-0.37.0-r1.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{8..10} )
-inherit distutils-r1 llvm
-
-DESCRIPTION="Python wrapper around the llvm C++ library"
-HOMEPAGE="https://llvmlite.pydata.org/"
-SRC_URI="https://github.com/numba/llvmlite/archive/v${PV/_/}.tar.gz -> ${P/_/}.gh.tar.gz"
-S="${WORKDIR}/${P/_/}"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86"
-IUSE="examples"
-
-LLVM_MAX_SLOT=12
-
-RDEPEND="
-	sys-devel/llvm:${LLVM_MAX_SLOT}
-	sys-libs/zlib:0=
-"
-DEPEND="${RDEPEND}"
-
-PATCHES=( "${FILESDIR}/${P}-llvm12.patch" )
-
-src_prepare() {
-	sed -i -e '/max_python/s:3\.10:3.11:' setup.py || die
-	distutils-r1_src_prepare
-}
-
-python_configure_all() {
-	# upstream's build system is just horrible, and they ignored the PR
-	# fixing it, so let's build the shared lib properly using implicit
-	# make rules
-
-	export LDLIBS=$(llvm-config --libs all)
-	export CXXFLAGS="$(llvm-config --cxxflags) -fPIC ${CXXFLAGS}"
-	export LDFLAGS="$(llvm-config --ldflags) ${LDFLAGS}"
-
-	local files=( ffi/*.cpp )
-	emake -f - <<EOF
-ffi/libllvmlite.so: ${files[*]/.cpp/.o}
-	\$(CXX) -shared \$(CXXFLAGS) \$(LDFLAGS) -o \$@ \$^ \$(LDLIBS)
-EOF
-
-	export LLVMLITE_SKIP_LLVM_VERSION_CHECK=1
-}
-
-python_test() {
-	"${EPYTHON}" runtests.py -v || die "Tests failed under ${EPYTHON}"
-}
-
-python_install_all() {
-	distutils-r1_python_install_all
-	if use examples; then
-		dodoc -r examples
-		docompress -x /usr/share/doc/${PF}/examples
-	fi
-}

diff --git a/dev-python/llvmlite/llvmlite-0.38.0-r1.ebuild b/dev-python/llvmlite/llvmlite-0.38.0-r1.ebuild
deleted file mode 100644
index 607c1bb0b..000000000
--- a/dev-python/llvmlite/llvmlite-0.38.0-r1.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{8..10} )
-inherit distutils-r1 llvm
-
-DESCRIPTION="Python wrapper around the llvm C++ library"
-HOMEPAGE="https://llvmlite.pydata.org/"
-SRC_URI="https://github.com/numba/llvmlite/archive/v${PV/_/}.tar.gz -> ${P/_/}.gh.tar.gz"
-S="${WORKDIR}/${P/_/}"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86"
-IUSE="examples"
-
-LLVM_MAX_SLOT=12
-
-RDEPEND="
-	sys-devel/llvm:${LLVM_MAX_SLOT}
-	sys-libs/zlib:0=
-"
-DEPEND="${RDEPEND}"
-
-PATCHES=( "${FILESDIR}/${P}-llvm12.patch" )
-
-src_prepare() {
-	sed -i -e '/max_python/s:3\.10:3.11:' setup.py || die
-	distutils-r1_src_prepare
-}
-
-python_configure_all() {
-	# upstream's build system is just horrible, and they ignored the PR
-	# fixing it, so let's build the shared lib properly using implicit
-	# make rules
-
-	export LDLIBS=$(llvm-config --libs all)
-	export CXXFLAGS="$(llvm-config --cxxflags) -fPIC ${CXXFLAGS}"
-	export LDFLAGS="$(llvm-config --ldflags) ${LDFLAGS}"
-
-	local files=( ffi/*.cpp )
-	emake -f - <<EOF
-ffi/libllvmlite.so: ${files[*]/.cpp/.o}
-	\$(CXX) -shared \$(CXXFLAGS) \$(LDFLAGS) -o \$@ \$^ \$(LDLIBS)
-EOF
-
-	export LLVMLITE_SKIP_LLVM_VERSION_CHECK=1
-}
-
-python_test() {
-	"${EPYTHON}" runtests.py -v || die "Tests failed under ${EPYTHON}"
-}
-
-python_install_all() {
-	distutils-r1_python_install_all
-	if use examples; then
-		dodoc -r examples
-		docompress -x /usr/share/doc/${PF}/examples
-	fi
-}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-python/llvmlite/, dev-python/llvmlite/files/
@ 2022-10-14 10:12 Andrew Ammerlaan
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Ammerlaan @ 2022-10-14 10:12 UTC (permalink / raw
  To: gentoo-commits

commit:     4d0e876af8e7fa85a9ae5f16639bd5a3ddd2e3b0
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 14 10:11:48 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Oct 14 10:11:48 2022 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=4d0e876a

dev-python/llvmlite: bump to v0.39.1

Note that the original motivation for this contribution was that
github's dynamically generated tarball of v0.39.0 had changed, causing
hash check to fail.

Co-authored-by: =?UTF-8?q?J=C3=A9r=C3=B4me=20Carretero?= <cJ <AT> zougloub.eu>
Closes: https://github.com/gentoo/sci/pull/1173
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 .../files/{llvmlite-0.39.0-llvm12.patch => llvmlite-0.39.1-llvm12.patch}  | 0
 dev-python/llvmlite/{llvmlite-0.39.0.ebuild => llvmlite-0.39.1.ebuild}    | 0
 2 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/dev-python/llvmlite/files/llvmlite-0.39.0-llvm12.patch b/dev-python/llvmlite/files/llvmlite-0.39.1-llvm12.patch
similarity index 100%
rename from dev-python/llvmlite/files/llvmlite-0.39.0-llvm12.patch
rename to dev-python/llvmlite/files/llvmlite-0.39.1-llvm12.patch

diff --git a/dev-python/llvmlite/llvmlite-0.39.0.ebuild b/dev-python/llvmlite/llvmlite-0.39.1.ebuild
similarity index 100%
rename from dev-python/llvmlite/llvmlite-0.39.0.ebuild
rename to dev-python/llvmlite/llvmlite-0.39.1.ebuild


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-python/llvmlite/, dev-python/llvmlite/files/
@ 2022-12-12 15:16 Andrew Ammerlaan
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Ammerlaan @ 2022-12-12 15:16 UTC (permalink / raw
  To: gentoo-commits

commit:     4d037264cefa516031390064e1dbc7f410692a3a
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 12 11:13:19 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Dec 12 11:13:54 2022 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=4d037264

dev-python/llvmlite: enable py3.11

tests pass

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 .../llvmlite/files/llvmlite-0.39.1-allow-py3.11.patch       | 13 +++++++++++++
 dev-python/llvmlite/llvmlite-0.39.1.ebuild                  |  8 ++++++--
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/dev-python/llvmlite/files/llvmlite-0.39.1-allow-py3.11.patch b/dev-python/llvmlite/files/llvmlite-0.39.1-allow-py3.11.patch
new file mode 100644
index 000000000..d35979ebc
--- /dev/null
+++ b/dev-python/llvmlite/files/llvmlite-0.39.1-allow-py3.11.patch
@@ -0,0 +1,13 @@
+diff --git a/setup.py b/setup.py
+index 02b1604..a45c9b8 100644
+--- a/setup.py
++++ b/setup.py
+@@ -33,7 +33,7 @@ except ImportError:
+ 
+ 
+ min_python_version = "3.7"
+-max_python_version = "3.11"  # exclusive
++max_python_version = "3.12"  # exclusive
+ 
+ 
+ def _guard_py_ver():

diff --git a/dev-python/llvmlite/llvmlite-0.39.1.ebuild b/dev-python/llvmlite/llvmlite-0.39.1.ebuild
index a2c3a6750..fdc2cf823 100644
--- a/dev-python/llvmlite/llvmlite-0.39.1.ebuild
+++ b/dev-python/llvmlite/llvmlite-0.39.1.ebuild
@@ -3,7 +3,8 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_COMPAT=( python3_{8..11} )
+DISTUTILS_USE_PEP517=setuptools
 inherit distutils-r1 llvm
 
 DESCRIPTION="Python wrapper around the llvm C++ library"
@@ -24,7 +25,10 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}"
 
-PATCHES=( "${FILESDIR}/${P}-llvm12.patch" )
+PATCHES=(
+	"${FILESDIR}/${P}-llvm12.patch"
+	"${FILESDIR}/${P}-allow-py3.11.patch"
+)
 
 src_prepare() {
 	sed -i -e '/max_python/s:3\.10:3.11:' setup.py || die


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-12 15:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-14 10:12 [gentoo-commits] proj/sci:master commit in: dev-python/llvmlite/, dev-python/llvmlite/files/ Andrew Ammerlaan
  -- strict thread matches above, loose matches on Subject: below --
2022-12-12 15:16 Andrew Ammerlaan
2022-08-07  9:07 Andrew Ammerlaan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox