From 7ff0bae24f6312fa4a3095a8d0d6befc1be9a8b4 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Fri, 26 Dec 2025 22:57:31 -0800 Subject: [PATCH] add: numba (#8667) (#8676) --- anda/langs/python/numba/anda.hcl | 5 +++ anda/langs/python/numba/numba.spec | 55 +++++++++++++++++++++++++++++ anda/langs/python/numba/update.rhai | 1 + 3 files changed, 61 insertions(+) create mode 100644 anda/langs/python/numba/anda.hcl create mode 100644 anda/langs/python/numba/numba.spec create mode 100644 anda/langs/python/numba/update.rhai diff --git a/anda/langs/python/numba/anda.hcl b/anda/langs/python/numba/anda.hcl new file mode 100644 index 0000000000..db80a9f081 --- /dev/null +++ b/anda/langs/python/numba/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "numba.spec" + } +} diff --git a/anda/langs/python/numba/numba.spec b/anda/langs/python/numba/numba.spec new file mode 100644 index 0000000000..6a520afb62 --- /dev/null +++ b/anda/langs/python/numba/numba.spec @@ -0,0 +1,55 @@ +%global pypi_name numba + +Name: python-%{pypi_name} +Version: 0.63.1 +Release: 1%?dist +Summary: NumPy aware dynamic Python compiler using LLVM +License: BSD-2-Clause AND MIT AND BSD-3-Clause +URL: https://numba.pydata.org +# PyPi source does not include all files +Source0: https://github.com/numba/numba/archive/refs/tags/%version.tar.gz +# This package is intentionally not noarch + +BuildRequires: python3-devel +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-hatchling +BuildRequires: python3-numpy +BuildRequires: gcc-c++ + +Packager: Owen Zimmerman + +%description +Numba is an open source, NumPy-aware optimizing compiler for Python sponsored by Anaconda, Inc. It uses the LLVM compiler project to generate machine code from Python syntax. + +Numba can compile a large subset of numerically-focused Python, including many NumPy functions. Additionally, Numba has support for automatic parallelization of loops, generation of GPU-accelerated code, and creation of ufuncs and C callbacks. + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: numba +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +Numba is an open source, NumPy-aware optimizing compiler for Python sponsored by Anaconda, Inc. It uses the LLVM compiler project to generate machine code from Python syntax. + +Numba can compile a large subset of numerically-focused Python, including many NumPy functions. Additionally, Numba has support for automatic parallelization of loops, generation of GPU-accelerated code, and creation of ufuncs and C callbacks. + +%prep +%autosetup -n numba-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files numba + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.rst CHANGE_LOG SECURITY.md CONTRIBUTING.md +%license LICENSE LICENSES.third-party +%{_bindir}/numba + +%changelog +* Fri Dec 26 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/numba/update.rhai b/anda/langs/python/numba/update.rhai new file mode 100644 index 0000000000..17dfc79a2e --- /dev/null +++ b/anda/langs/python/numba/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("numba/numba"));