From: TizenOpenSource Date: Wed, 7 Feb 2024 05:43:27 +0000 (+0900) Subject: Bump to 1.26.2 X-Git-Tag: accepted/tizen/unified/20240328.043428~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec595ff6de05fb1ae2967a999a8ffb9ed81972d1;p=platform%2Fupstream%2Fpython3-numpy.git Bump to 1.26.2 Change-Id: I239aa16c66f073460071f453412b7355da249601 Signed-off-by: TizenOpenSource --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 3de77ebc..00000000 --- a/.gitignore +++ /dev/null @@ -1,233 +0,0 @@ -# Editor temporary/working/backup files # -######################################### -.#* -[#]*# -*~ -*$ -*.bak -*.diff -.idea/ -*.iml -*.ipr -*.iws -*.org -.project -pmip -*.rej -.settings/ -.*.sw[nop] -.sw[nop] -*.tmp -*.vim -.vscode -tags -cscope.out -# gnu global -GPATH -GRTAGS -GSYMS -GTAGS -.cache -.mypy_cache/ - -# Compiled source # -################### -*.a -*.com -*.class -*.dll -*.exe -*.o -*.o.d -*.py[ocd] -*.so - -# Packages # -############ -# it's better to unpack these files and commit the raw source -# git has its own built in compression methods -*.7z -*.bz2 -*.bzip2 -*.dmg -*.gz -*.iso -*.jar -*.rar -*.tar -*.tbz2 -*.tgz -*.zip - -# Python files # -################ -# meson build/installation directories -build -build-install -# meson python output -.mesonpy-native-file.ini -# sphinx build directory -_build -# setup.py dist directory -dist -doc/build -doc/docenv -doc/cdoc/build -# Egg metadata -*.egg-info -# The shelf plugin uses this dir -./.shelf -MANIFEST -.cache -pip-wheel-metadata -.python-version - -# Paver generated files # -######################### -/release - -# Logs and databases # -###################### -*.log -*.sql -*.sqlite - -# Patches # -########### -*.patch -*.diff - -# OS generated files # -###################### -.DS_Store* -.VolumeIcon.icns -.fseventsd -Icon? -.gdb_history -ehthumbs.db -Thumbs.db -.directory - -# pytest generated files # -########################## -/.pytest_cache - -# doc build generated files # -############################# -doc/source/savefig/ - - -# Things specific to this project # -################################### -# The line below should change to numpy/_version.py for NumPy 2.0 -numpy/version.py -numpy/core/__svn_version__.py -doc/numpy.scipy.org/_build -numpy/__config__.py -numpy/core/include/numpy/__multiarray_api.h -numpy/core/include/numpy/__ufunc_api.h -numpy/core/include/numpy/_numpyconfig.h -site.cfg -.tox -numpy/core/include/numpy/__multiarray_api.c -numpy/core/include/numpy/__ufunc_api.c -numpy/core/include/numpy/__umath_generated.c -numpy/core/include/numpy/_umath_doc_generated.h -numpy/core/include/numpy/config.h -numpy/core/lib/ -numpy/core/src/common/npy_sort.h -numpy/core/src/common/templ_common.h -numpy/core/src/multiarray/_multiarray_tests.c -numpy/core/src/multiarray/arraytypes.c -numpy/core/src/multiarray/einsum.c -numpy/core/src/multiarray/einsum_sumprod.c -numpy/core/src/multiarray/lowlevel_strided_loops.c -numpy/core/src/multiarray/multiarray_tests.c -numpy/core/src/multiarray/nditer_templ.c -numpy/core/src/multiarray/scalartypes.c -numpy/core/src/multiarray/textreading/tokenize.c -numpy/core/src/npymath/ieee754.c -numpy/core/src/npymath/npy_math_complex.c -numpy/core/src/npymath/npy_math_internal.h -numpy/core/src/npysort/binsearch.c -numpy/core/src/npysort/heapsort.c -numpy/core/src/npysort/mergesort.c -numpy/core/src/npysort/quicksort.c -numpy/core/src/npysort/radixsort.c -numpy/core/src/npysort/selection.c -numpy/core/src/npysort/timsort.c -numpy/core/src/npysort/sort.c -numpy/core/src/private/npy_binsearch.h -numpy/core/src/private/npy_partition.h -numpy/core/src/private/templ_common.h -numpy/core/src/umath/_umath_tests.c -numpy/core/src/umath/scalarmath.c -numpy/core/src/umath/funcs.inc -numpy/core/src/umath/clip.[ch] -numpy/core/src/umath/loops.[ch] -numpy/core/src/umath/matmul.[ch] -numpy/core/src/umath/operand_flag_tests.c -numpy/core/src/umath/simd.inc -numpy/core/src/umath/struct_ufunc_test.c -numpy/core/src/umath/test_rational.c -numpy/core/src/umath/umath_tests.c -numpy/core/src/umath/loops_utils.h -numpy/core/src/umath/loops_modulo.dispatch.c -numpy/distutils/__config__.py -numpy/linalg/umath_linalg.c -doc/source/**/generated/ -benchmarks/results -benchmarks/html -benchmarks/env -benchmarks/numpy -benchmarks/_asv_compare.conf.json -test.obj -# cythonized files -cythonize.dat -numpy/random/_mtrand/_mtrand.c -numpy/random/*.c -numpy/random/legacy/*.c -numpy/random/_mtrand/randint_helpers.pxi -numpy/random/bounded_integers.pyx -numpy/random/bounded_integers.pxd -numpy/random/lib/npyrandom.lib -tools/swig/test/Array_wrap.cxx -tools/swig/test/Farray_wrap.cxx -tools/swig/test/Farray.py -tools/swig/test/Flat_wrap.cxx -tools/swig/test/Flat.py -tools/swig/test/Fortran_wrap.cxx -tools/swig/test/Fortran.py -tools/swig/test/Matrix_wrap.cxx -tools/swig/test/Matrix.py -tools/swig/test/Tensor_wrap.cxx -tools/swig/test/Tensor.py -tools/swig/test/Vector.py -tools/swig/test/Vector_wrap.cxx -tools/swig/test/Array.py - -# SIMD generated files # -################################### -# _simd module -numpy/core/src/_simd/_simd.dispatch.c -numpy/core/src/_simd/_simd_data.inc -numpy/core/src/_simd/_simd_inc.h -# umath module -numpy/core/src/umath/loops_unary.dispatch.c -numpy/core/src/umath/loops_unary_fp.dispatch.c -numpy/core/src/umath/loops_unary_fp_le.dispatch.c -numpy/core/src/umath/loops_arithm_fp.dispatch.c -numpy/core/src/umath/loops_arithmetic.dispatch.c -numpy/core/src/umath/loops_logical.dispatch.c -numpy/core/src/umath/loops_minmax.dispatch.c -numpy/core/src/umath/loops_trigonometric.dispatch.c -numpy/core/src/umath/loops_exponent_log.dispatch.c -numpy/core/src/umath/loops_umath_fp.dispatch.c -numpy/core/src/umath/loops_hyperbolic.dispatch.c -numpy/core/src/umath/loops_modulo.dispatch.c -numpy/core/src/umath/loops_comparison.dispatch.c -numpy/core/src/umath/loops_unary_complex.dispatch.c -numpy/core/src/umath/loops_autovec.dispatch.c -# multiarray module -numpy/core/src/multiarray/argfunc.dispatch.c -numpy/core/src/multiarray/arraytypes.h diff --git a/doc/source/_static/scipy-mathjax/.gitignore b/doc/source/_static/scipy-mathjax/.gitignore deleted file mode 100644 index 7d5b7a94..00000000 --- a/doc/source/_static/scipy-mathjax/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/build -/node_modules diff --git a/packaging/python3-numpy.manifest b/packaging/python3-numpy.manifest new file mode 100644 index 00000000..017d22d3 --- /dev/null +++ b/packaging/python3-numpy.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/python3-numpy.spec b/packaging/python3-numpy.spec new file mode 100644 index 00000000..890a99c0 --- /dev/null +++ b/packaging/python3-numpy.spec @@ -0,0 +1,98 @@ +%global debug_package %{nil} + +Name: python3-numpy +Version: 1.26.2 +Release: 0 +Summary: NumPy array processing for numbers, strings, records and objects +License: BSD-3-Clause +Group: Development/Libraries/Python3 +Url: http://www.numpy.org/ +Source0: %{name}-%{version}.tar.gz +Source1001: %{name}.manifest + +BuildRequires: blas-devel +BuildRequires: gcc-fortran +BuildRequires: lapack-devel +BuildRequires: unzip +BuildRequires: pkgconfig(python3) +BuildRequires: python3-cython +BuildRequires: python3-setuptools +BuildRequires: openblas-devel + +BuildRequires: meson +BuildRequires: ninja + +%description +NumPy is a general-purpose array-processing package designed to +efficiently manipulate large multi-dimensional arrays of arbitrary +records without sacrificing too much speed for small multi-dimensional +arrays. NumPy is built on the Numeric code base and adds features +introduced by numarray as well as an extended C-API and the ability to +create arrays of arbitrary type which also makes NumPy suitable for +interfacing with general-purpose data-base applications. + +There are also basic facilities for discrete fourier transform, +basic linear algebra and random number generation. + +%package devel +Summary: Development files for numpy applications +Group: Development/Libraries/Python3 +Requires: %{name} = %{version} +Requires: blas-devel +BuildRequires: gcc-fortran +Requires: lapack-devel +Requires: python3-devel +Requires: openblas-devel + +%description devel +This package contains files for developing applications using numpy. + +%prep +%setup -q +cp %{SOURCE1001} . + +%build +export CFLAGS="%{optflags} -fno-strict-aliasing" +export G_SLICE=always-malloc +%{_bindir}/python3 setup.py build + +%install +# https://github.com/numpy/numpy/issues/16005 +# if the CFLAGS is not set the same as the build section, the build will be performed again during installation. +export CFLAGS="%{optflags} -fno-strict-aliasing" +export G_SLICE=always-malloc +%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} || exit 0 + +%remove_docs + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%manifest %{name}.manifest +%license LICENSE.txt +%{python3_sitearch}/numpy/* +%{python3_sitearch}/numpy-%{version}-py*.egg-info + +%exclude %{python3_sitearch}/numpy/distutils/checks/*.c +%exclude %{python3_sitearch}/numpy/f2py/src/*.c +%exclude %{python3_sitearch}/numpy/f2py/tests/src/array_from_pyobj/*.c +%exclude %{python3_sitearch}/numpy/core/tests/examples/limited_api/*.c +%exclude %{python3_sitearch}/numpy/f2py/src/*.h +%exclude %{python3_sitearch}/numpy/core/include/numpy/*.h +%exclude %{python3_sitearch}/numpy/core/lib/libnpymath.a +%exclude %{python3_sitearch}/numpy/random/lib/libnpyrandom.a + +%files devel +%license LICENSE.txt +%{python3_sitearch}/numpy/distutils/checks/*.c +%{python3_sitearch}/numpy/f2py/src/*.c +%{python3_sitearch}/numpy/f2py/tests/src/array_from_pyobj/*.c +%{python3_sitearch}/numpy/core/tests/examples/limited_api/*.c +%{python3_sitearch}/numpy/f2py/src/*.h +%{python3_sitearch}/numpy/core/include/numpy/*.h +%{python3_sitearch}/numpy/core/lib/libnpymath.a +%{python3_sitearch}/numpy/random/lib/libnpyrandom.a + +%changelog