Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add numba + llvmlite #1286

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev-python/llvmlite/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST llvmlite-0.43.0.gh.tar.gz 265174 BLAKE2B ea2c692897476b47328c076020fb582e3c01b8cd0fdcb0c0e28e4c8db7e51096b0f4220492bf7ecb8b5cdeabd6ef17c699070dad272b5ec2f29295159f138fe5 SHA512 a77c3c3ed31b6e71b2b3d39ff82f0a9993a6968c947c422c47a897d25f28b62e7304873dae31089db2655c3d7d4780f79786b7d62dfa07c61ba6da9ef1417ad9
43 changes: 43 additions & 0 deletions dev-python/llvmlite/llvmlite-0.43.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
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"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="examples debug"

DISTUTILS_EXT=1
LLVM_MAX_SLOT=15

RDEPEND="
sys-devel/llvm:${LLVM_MAX_SLOT}
sys-libs/zlib:0=
"
DEPEND="${RDEPEND}"

distutils_enable_tests pytest

python_test() {
LD_LIBRARY_PATH="${EPREFIX}/usr/lib/llvm/${LLVM_MAX_SLOT}/lib64" \
"${EPYTHON}" runtests.py -v || die "Tests failed under ${EPYTHON}"
}

python_install_all() {
distutils-r1_python_install_all
dosym "${EPREFIX}/usr/lib/llvm/${LLVM_MAX_SLOT}/lib64/libLLVM-${LLVM_MAX_SLOT}.so" \
/usr/lib/$EPYTHON/site-packages/llvmlite/binding/libLLVM-${LLVM_MAX_SLOT}.so
if use examples; then
dodoc -r examples
docompress -x /usr/share/doc/${PF}/examples
fi
}
16 changes: 16 additions & 0 deletions dev-python/llvmlite/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>[email protected]</email>
<name>Gentoo Science Project</name>
</maintainer>
<maintainer type="person">
<email>[email protected]</email>
<name>Michael Schubert</name>
</maintainer>
<upstream>
<remote-id type="github">numba/llvmlite</remote-id>
<remote-id type="pypi">llvmlite</remote-id>
</upstream>
</pkgmetadata>
1 change: 1 addition & 0 deletions dev-python/numba/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST numba-0.60.0.gh.tar.gz 2774501 BLAKE2B aaf5350221eac3c66551756bf8ac0d657b476ede74e4f80430192b16b143a119cbd11337727b4caa6515fab83bdfe06d44d9224c0d5b9b0800ccbd791041833a SHA512 8680906c77b03b82249489418adb44f7817d6f9051241fffe52045dd1e0b59ed990cbdbbf5837bcf2b69e702174f393ec6011e352ec33f993ca0c599eceeb1f6
16 changes: 16 additions & 0 deletions dev-python/numba/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>[email protected]</email>
<name>Gentoo Science Project</name>
</maintainer>
<maintainer type="person">
<email>[email protected]</email>
<name>Michael Schubert</name>
</maintainer>
<upstream>
<remote-id type="github">numba/numba</remote-id>
<remote-id type="pypi">numba</remote-id>
</upstream>
</pkgmetadata>
25 changes: 25 additions & 0 deletions dev-python/numba/numba-0.60.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1

DISTUTILS_EXT=1

DESCRIPTION="NumPy aware dynamic Python compiler using LLVM"
HOMEPAGE="https://numba.pydata.org/"
SRC_URI="https://github.com/numba/numba/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug"

RDEPEND="dev-python/llvmlite"
DEPEND="${RDEPEND}"

RESTRICT="test" # "from numba.core.typeconv import _typeconv" fails but works after install
distutils_enable_tests pytest
Loading