dev-python/numba: new package, add 0.64.0
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
1 parent
990eebcae2
commit
3e7911e17f
3 files changed
+86
No files matched your search
@@ -0,0 +1,4 @@
|
||||
DIST numba-0.64.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl 3747376 BLAKE2B 51e1dd07964cab34a57a5d1bf8822f1ff1a4ac01814243c328ec0135510781338ad46ece22fb99670511dafe14f96a2fddbff21e775130f3710c941de3ede8b6 SHA512 fd688fe1b0e5dc1a9325d438cf4b664be38b418a8fa2d84638de85264ed6d96c8e81b64a6032f5e3b6c74ffe449d170ad9cd0229cfd05c7ec34b435eb3ed7b41
|
||||
DIST numba-0.64.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl 3804087 BLAKE2B 0b24bf8e4c8b598676d62d46138549c380b9fef0791f96d95bf17964b992673f5d3e5b2c5f3927dcba402e573fe892d57e39f08b6b46704b77bfcda2fb41693e SHA512 979e1732c58071e5d09e8cca9249dcd947f14d8c8579f7a6202ff1689bdbae2b48d2b676f2cd46da661f94dbefa4b2a996fd2dbd9d9003973749e1d2a8a4705e
|
||||
DIST numba-0.64.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl 3812245 BLAKE2B 9e481b8a1d2be18a10cfaecd7cb97748efc689075f815ce23be6487b427bac1394f76920c27f91dc1da0da2685cf813caebd6d22825fd8e2a504ddc77627bf55 SHA512 6dcd0c1e36e3e053bd4edd1a2c049441e5f634d946fe89346a67a3ebefa43a6d9b6d2d998fdb14536597f073fc14d4f27d292351812e027f6ab2e5feb03497f1
|
||||
DIST numba-0.64.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl 3781163 BLAKE2B 0750fb960c5e84d216e9d3b07ac243ef1cb3cc93d93891f1b2c4417f698049a03c5dc032d1faad57c12cb3117edc0bdf66b94f3e89d34447be521fa96de99c1b SHA512 bc56c3a1e37d7e84b4fd9bd68aeb3b24eda39f2a19407ade1af28868ee3a7df906569b287162daf05f3fec23a357f92a4961bbf047e96a542a8320179d3ce516
|
||||
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>vowstar@gmail.com</email>
|
||||
<name>Huang Rui</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">numba/numba</remote-id>
|
||||
<remote-id type="pypi">numba</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
Numba is an open-source NumPy-aware optimizing compiler for Python
|
||||
sponsored by Anaconda. It uses the LLVM compiler infrastructure to
|
||||
compile Python code to native machine code, making numerical and
|
||||
scientific Python code run at speeds approaching C or Fortran. This
|
||||
is a prebuilt binary package from PyPI wheels.
|
||||
</longdescription>
|
||||
<longdescription lang="zh">
|
||||
Numba是一个由Anaconda赞助的开源NumPy感知Python优化编译器。它使用LLVM
|
||||
编译器基础设施将Python代码编译为本机机器码,使数值和科学Python代码以
|
||||
接近C或Fortran的速度运行。这是一个来自PyPI wheel的预构建二进制包。
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,58 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
DISTUTILS_USE_PEP517=standalone
|
||||
DISTUTILS_EXT=1
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="NumPy-aware optimizing compiler for Python using LLVM"
|
||||
HOMEPAGE="
|
||||
https://github.com/numba/numba
|
||||
https://pypi.org/project/numba/
|
||||
"
|
||||
|
||||
SRC_URI="
|
||||
python_targets_python3_11? (
|
||||
$(pypi_wheel_url ${PN} ${PV} "cp311" "cp311-manylinux2014_x86_64.manylinux_2_17_x86_64")
|
||||
)
|
||||
python_targets_python3_12? (
|
||||
$(pypi_wheel_url ${PN} ${PV} "cp312" "cp312-manylinux2014_x86_64.manylinux_2_17_x86_64")
|
||||
)
|
||||
python_targets_python3_13? (
|
||||
$(pypi_wheel_url ${PN} ${PV} "cp313" "cp313-manylinux2014_x86_64.manylinux_2_17_x86_64")
|
||||
)
|
||||
python_targets_python3_14? (
|
||||
$(pypi_wheel_url ${PN} ${PV} "cp314" "cp314-manylinux2014_x86_64.manylinux_2_17_x86_64")
|
||||
)
|
||||
"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/llvmlite-0.46.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/numpy-1.22[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
RESTRICT="bindist mirror strip test"
|
||||
|
||||
QA_PREBUILT="*"
|
||||
|
||||
python_compile() {
|
||||
local pyver="${EPYTHON/python/}"
|
||||
pyver="${pyver/./}"
|
||||
local pytag="cp${pyver}"
|
||||
local abitag="${pytag}-manylinux2014_x86_64.manylinux_2_17_x86_64"
|
||||
distutils_wheel_install "${BUILD_DIR}/install" \
|
||||
"${DISTDIR}/$(pypi_wheel_name "${PN}" "${PV}" "${pytag}" "${abitag}")"
|
||||
|
||||
# Remove optional threading backends with unresolvable soname deps
|
||||
# (libgomp for OpenMP, libtbb for TBB); numba works without them
|
||||
rm -f "${BUILD_DIR}"/install/usr/lib/python*/site-packages/numba/np/ufunc/{omppool,tbbpool}*.so || true
|
||||
}
|
||||
Reference in new issue
Block a user