Группа :: Development/Python3
Пакет: python3-module-numba
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define oname numba
# check runs more then half of a day
%def_without check
Name: python3-module-%oname
Version: 0.57.1
Release: alt2
Summary: A Just-In-Time Compiler for Numerical Functions in Python
License: BSD
Group: Development/Python3
URL: https://pypi.org/project/numba
Packager: Grigory Ustinov <grenka at altlinux.org>
BuildRequires(pre): rpm-build-python3
BuildRequires: gcc-c++ libgomp-devel libnumpy-py3-devel
Source: %name-%version.tar
Patch: numba-0.57.1-add-numpy-1.25-support.patch
%add_python3_self_prov_path %buildroot%python3_sitelibdir/%oname/tests/pycc_distutils_usecase/
%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.
%prep
%setup
%patch -p1
sed -i 's|"version": "0+unknown"|"version": "%version"|' versioneer.py
%ifarch %e2k
# error: misspelling pragma string
sed -i "/omp parallel/s/),/)/" numba/np/ufunc/omppool.cpp
%endif
%build
%python3_build
%install
%python3_install
mv %buildroot%_bindir/numba %buildroot%_bindir/numba3
%check
mkdir emtpytestdir
pushd emtpytestdir
export PYTHONPATH=%buildroot%python3_sitelibdir
%__python3 -m numba.runtests -v
popd
%files
%doc CHANGE_LOG *.rst
%_bindir/numba3
%python3_sitelibdir/%oname
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info
%changelog
…
Полный changelog можно просмотреть здесь
# check runs more then half of a day
%def_without check
Name: python3-module-%oname
Version: 0.57.1
Release: alt2
Summary: A Just-In-Time Compiler for Numerical Functions in Python
License: BSD
Group: Development/Python3
URL: https://pypi.org/project/numba
Packager: Grigory Ustinov <grenka at altlinux.org>
BuildRequires(pre): rpm-build-python3
BuildRequires: gcc-c++ libgomp-devel libnumpy-py3-devel
Source: %name-%version.tar
Patch: numba-0.57.1-add-numpy-1.25-support.patch
%add_python3_self_prov_path %buildroot%python3_sitelibdir/%oname/tests/pycc_distutils_usecase/
%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.
%prep
%setup
%patch -p1
sed -i 's|"version": "0+unknown"|"version": "%version"|' versioneer.py
%ifarch %e2k
# error: misspelling pragma string
sed -i "/omp parallel/s/),/)/" numba/np/ufunc/omppool.cpp
%endif
%build
%python3_build
%install
%python3_install
mv %buildroot%_bindir/numba %buildroot%_bindir/numba3
%check
mkdir emtpytestdir
pushd emtpytestdir
export PYTHONPATH=%buildroot%python3_sitelibdir
%__python3 -m numba.runtests -v
popd
%files
%doc CHANGE_LOG *.rst
%_bindir/numba3
%python3_sitelibdir/%oname
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info
%changelog
…
Полный changelog можно просмотреть здесь