import UBI numpy-1.26.4-5.el10
This commit is contained in:
parent
291c69c538
commit
f158a59fce
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
SOURCES/numpy-1.14.2.tar.gz
|
||||
SOURCES/numpy-html-1.13.0.zip
|
||||
numpy-1.26.4.tar.gz
|
||||
numpy-html.zip
|
||||
|
||||
@ -1,2 +0,0 @@
|
||||
c00e70468703830a26ee9173ba1cf4aedf08718f SOURCES/numpy-1.14.2.tar.gz
|
||||
b23d66880bba5f56baa81ce02eb5a55de046c0a7 SOURCES/numpy-html-1.13.0.zip
|
||||
@ -1,166 +0,0 @@
|
||||
From 0fcfa065d900040c80628b31b8b6ea606c131086 Mon Sep 17 00:00:00 2001
|
||||
From: Paul Ivanov <pivanov5@bloomberg.net>
|
||||
Date: Wed, 30 Jan 2019 14:22:44 -0800
|
||||
Subject: [PATCH] BUG: load fails when using pickle without allow_pickle=True
|
||||
|
||||
a partial mitigation of #12759.
|
||||
|
||||
see also https://nvd.nist.gov/vuln/detail/CVE-2019-6446
|
||||
---
|
||||
numpy/core/tests/test_regression.py | 2 +-
|
||||
numpy/lib/format.py | 8 ++++++--
|
||||
numpy/lib/npyio.py | 17 ++++++++++++-----
|
||||
numpy/lib/tests/test_format.py | 15 +++++++++------
|
||||
numpy/lib/tests/test_io.py | 2 +-
|
||||
5 files changed, 29 insertions(+), 15 deletions(-)
|
||||
|
||||
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py
|
||||
index a3b0114..2be6bf3 100644
|
||||
--- a/numpy/core/tests/test_regression.py
|
||||
+++ b/numpy/core/tests/test_regression.py
|
||||
@@ -96,7 +96,7 @@ class TestRegression(object):
|
||||
ca = np.char.array(np.arange(1000, 1010), itemsize=4)
|
||||
ca.dump(f)
|
||||
f.seek(0)
|
||||
- ca = np.load(f)
|
||||
+ ca = np.load(f, allow_pickle=True)
|
||||
f.close()
|
||||
|
||||
def test_noncontiguous_fill(self):
|
||||
diff --git a/numpy/lib/format.py b/numpy/lib/format.py
|
||||
index 363bb21..b91142c 100644
|
||||
--- a/numpy/lib/format.py
|
||||
+++ b/numpy/lib/format.py
|
||||
@@ -602,7 +602,7 @@ def write_array(fp, array, version=None, allow_pickle=True, pickle_kwargs=None):
|
||||
fp.write(chunk.tobytes('C'))
|
||||
|
||||
|
||||
-def read_array(fp, allow_pickle=True, pickle_kwargs=None):
|
||||
+def read_array(fp, allow_pickle=False, pickle_kwargs=None):
|
||||
"""
|
||||
Read an array from an NPY file.
|
||||
|
||||
@@ -612,7 +612,11 @@ def read_array(fp, allow_pickle=True, pickle_kwargs=None):
|
||||
If this is not a real file object, then this may take extra memory
|
||||
and time.
|
||||
allow_pickle : bool, optional
|
||||
- Whether to allow reading pickled data. Default: True
|
||||
+ Whether to allow writing pickled data. Default: False
|
||||
+
|
||||
+ .. versionchanged:: 1.14.2
|
||||
+ Made default False in response to CVE-2019-6446.
|
||||
+
|
||||
pickle_kwargs : dict
|
||||
Additional keyword arguments to pass to pickle.load. These are only
|
||||
useful when loading object arrays saved on Python 2 when using
|
||||
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
|
||||
index 76b135c..c6522f5 100644
|
||||
--- a/numpy/lib/npyio.py
|
||||
+++ b/numpy/lib/npyio.py
|
||||
@@ -130,7 +130,11 @@ class NpzFile(object):
|
||||
An object on which attribute can be performed as an alternative
|
||||
to getitem access on the `NpzFile` instance itself.
|
||||
allow_pickle : bool, optional
|
||||
- Allow loading pickled data. Default: True
|
||||
+ Allow loading pickled data. Default: False
|
||||
+
|
||||
+ .. versionchanged:: 1.14.2
|
||||
+ Made default False in response to CVE-2019-6446.
|
||||
+
|
||||
pickle_kwargs : dict, optional
|
||||
Additional keyword arguments to pass on to pickle.load.
|
||||
These are only useful when loading object arrays saved on
|
||||
@@ -166,7 +170,7 @@ class NpzFile(object):
|
||||
|
||||
"""
|
||||
|
||||
- def __init__(self, fid, own_fid=False, allow_pickle=True,
|
||||
+ def __init__(self, fid, own_fid=False, allow_pickle=False,
|
||||
pickle_kwargs=None):
|
||||
# Import is postponed to here since zipfile depends on gzip, an
|
||||
# optional component of the so-called standard library.
|
||||
@@ -265,7 +269,7 @@ class NpzFile(object):
|
||||
return self.files.__contains__(key)
|
||||
|
||||
|
||||
-def load(file, mmap_mode=None, allow_pickle=True, fix_imports=True,
|
||||
+def load(file, mmap_mode=None, allow_pickle=False, fix_imports=True,
|
||||
encoding='ASCII'):
|
||||
"""
|
||||
Load arrays or pickled objects from ``.npy``, ``.npz`` or pickled files.
|
||||
@@ -287,8 +291,11 @@ def load(file, mmap_mode=None, allow_pickle=True, fix_imports=True,
|
||||
Allow loading pickled object arrays stored in npy files. Reasons for
|
||||
disallowing pickles include security, as loading pickled data can
|
||||
execute arbitrary code. If pickles are disallowed, loading object
|
||||
- arrays will fail.
|
||||
- Default: True
|
||||
+ arrays will fail. Default: False
|
||||
+
|
||||
+ .. versionchanged:: 1.14.2
|
||||
+ Made default False in response to CVE-2019-6446.
|
||||
+
|
||||
fix_imports : bool, optional
|
||||
Only useful when loading Python 2 generated pickled files on Python 3,
|
||||
which includes npy/npz files containing object arrays. If `fix_imports`
|
||||
diff --git a/numpy/lib/tests/test_format.py b/numpy/lib/tests/test_format.py
|
||||
index 2d2b4ce..04e090c 100644
|
||||
--- a/numpy/lib/tests/test_format.py
|
||||
+++ b/numpy/lib/tests/test_format.py
|
||||
@@ -426,7 +426,7 @@ def roundtrip(arr):
|
||||
f = BytesIO()
|
||||
format.write_array(f, arr)
|
||||
f2 = BytesIO(f.getvalue())
|
||||
- arr2 = format.read_array(f2)
|
||||
+ arr2 = format.read_array(f2, allow_pickle=True)
|
||||
return arr2
|
||||
|
||||
|
||||
@@ -553,7 +553,7 @@ def test_pickle_python2_python3():
|
||||
path = os.path.join(data_dir, fname)
|
||||
|
||||
for encoding in ['bytes', 'latin1']:
|
||||
- data_f = np.load(path, encoding=encoding)
|
||||
+ data_f = np.load(path, allow_pickle=True, encoding=encoding)
|
||||
if fname.endswith('.npz'):
|
||||
data = data_f['x']
|
||||
data_f.close()
|
||||
@@ -575,16 +575,19 @@ def test_pickle_python2_python3():
|
||||
if sys.version_info[0] >= 3:
|
||||
if fname.startswith('py2'):
|
||||
if fname.endswith('.npz'):
|
||||
- data = np.load(path)
|
||||
+ data = np.load(path, allow_pickle=True)
|
||||
assert_raises(UnicodeError, data.__getitem__, 'x')
|
||||
data.close()
|
||||
- data = np.load(path, fix_imports=False, encoding='latin1')
|
||||
+ data = np.load(path, allow_pickle=True, fix_imports=False,
|
||||
+ encoding='latin1')
|
||||
assert_raises(ImportError, data.__getitem__, 'x')
|
||||
data.close()
|
||||
else:
|
||||
- assert_raises(UnicodeError, np.load, path)
|
||||
+ assert_raises(UnicodeError, np.load, path,
|
||||
+ allow_pickle=True)
|
||||
assert_raises(ImportError, np.load, path,
|
||||
- encoding='latin1', fix_imports=False)
|
||||
+ allow_pickle=True, fix_imports=False,
|
||||
+ encoding='latin1')
|
||||
|
||||
|
||||
def test_pickle_disallow():
|
||||
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py
|
||||
index 2daa015..bde2567 100644
|
||||
--- a/numpy/lib/tests/test_io.py
|
||||
+++ b/numpy/lib/tests/test_io.py
|
||||
@@ -87,7 +87,7 @@ class RoundtripTest(object):
|
||||
|
||||
"""
|
||||
save_kwds = kwargs.get('save_kwds', {})
|
||||
- load_kwds = kwargs.get('load_kwds', {})
|
||||
+ load_kwds = kwargs.get('load_kwds', {"allow_pickle": True})
|
||||
file_on_disk = kwargs.get('file_on_disk', False)
|
||||
|
||||
if file_on_disk:
|
||||
--
|
||||
2.21.0
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
15
f2py_test.patch
Normal file
15
f2py_test.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git c/numpy/f2py/tests/test_compile_function.py i/numpy/f2py/tests/test_compile_function.py
|
||||
index 3c16f3198..e38fed898 100644
|
||||
--- c/numpy/f2py/tests/test_compile_function.py
|
||||
+++ i/numpy/f2py/tests/test_compile_function.py
|
||||
@@ -17,6 +17,10 @@ def setup_module():
|
||||
pytest.skip("Needs C compiler")
|
||||
if not util.has_f77_compiler():
|
||||
pytest.skip("Needs FORTRAN 77 compiler")
|
||||
+ if sys.version_info[:2] >= (3, 12):
|
||||
+ pytest.skip(
|
||||
+ "F2PY compilation tests do not work with meson."
|
||||
+ )
|
||||
|
||||
|
||||
# extra_args can be a list (since gh-11937) or string.
|
||||
@ -1,38 +1,43 @@
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
%bcond_without python3
|
||||
%else
|
||||
%bcond_with python3
|
||||
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%endif
|
||||
|
||||
#uncomment next line for a release candidate or a beta
|
||||
#%%global relc rc1
|
||||
|
||||
# Simple way to disable tests
|
||||
%if 0%{?flatpak} || 0%{?rhel}
|
||||
%bcond_with tests
|
||||
%else
|
||||
%bcond_without tests
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9
|
||||
%global blaslib flexiblas
|
||||
%global blasvar %{nil}
|
||||
%else
|
||||
%global blaslib openblas
|
||||
%global blasvar p
|
||||
%endif
|
||||
|
||||
%global modname numpy
|
||||
|
||||
Name: numpy
|
||||
Version: 1.14.2
|
||||
Release: 16%{?dist}
|
||||
Version: 1.26.4
|
||||
Release: 5%{?dist}
|
||||
Epoch: 1
|
||||
Summary: A fast multidimensional array facility for Python
|
||||
|
||||
Group: Development/Languages
|
||||
# Everything is BSD except for class SafeEval in numpy/lib/utils.py which is Python
|
||||
License: BSD and Python
|
||||
# Everything is BSD-3-Clause except...
|
||||
# numpy/core/include/numpy/libdivide: Zlib OR BSL-1.0
|
||||
# numpy/core/src/multiarray/dragon4.*: MIT
|
||||
# numpy/random/src/mt19937/randomkit.h: MIT
|
||||
# numpy/random/src/pcg64: MIT AND Apache-2.0
|
||||
# numpy/random/src/sfc64: MIT
|
||||
License: BSD-3-Clause AND MIT AND Apache-2.0 AND (Zlib OR BSL-1.0)
|
||||
URL: http://www.numpy.org/
|
||||
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: https://docs.scipy.org/doc/numpy/numpy-html-1.13.0.zip
|
||||
Patch0: numpy-1.14.2-float128.patch
|
||||
Patch1: numpy-1.14.2-CVE-2019-6446.patch
|
||||
|
||||
BuildRequires: python2-devel lapack-devel python2-setuptools gcc-gfortran python2-nose
|
||||
BuildRequires: /usr/bin/sed
|
||||
BuildRequires: python2-Cython
|
||||
%ifarch %{openblas_arches}
|
||||
BuildRequires: openblas-devel
|
||||
%else
|
||||
BuildRequires: atlas-devel
|
||||
%endif
|
||||
Source1: https://numpy.org/doc/%(echo %{version} | cut -d. -f1-2)/numpy-html.zip
|
||||
Patch0: f2py_test.patch
|
||||
# Python 3.13: Replace deprecated ctypes.ARRAY(item_type, size) with item_type * size
|
||||
# Upstream PR: https://github.com/numpy/numpy/pull/25198
|
||||
Patch4: replace-deprecated-ctypes.ARRAY.patch
|
||||
|
||||
|
||||
%description
|
||||
@ -48,55 +53,35 @@ basic linear algebra and random number generation. Also included in
|
||||
this package is a version of f2py that works properly with NumPy.
|
||||
|
||||
|
||||
%package -n python2-numpy
|
||||
Summary: A fast multidimensional array facility for Python
|
||||
Requires: python2-nose
|
||||
%{?python_provide:%python_provide python2-%{modname}}
|
||||
Obsoletes: numpy < 1:1.10.1-3
|
||||
%description -n python2-numpy
|
||||
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.
|
||||
|
||||
There are also basic facilities for discrete fourier transform,
|
||||
basic linear algebra and random number generation. Also included in
|
||||
this package is a version of f2py that works properly with NumPy.
|
||||
|
||||
|
||||
%package -n python2-numpy-f2py
|
||||
Summary: f2py for numpy
|
||||
Group: Development/Libraries
|
||||
Requires: python2-%{name} = %{epoch}:%{version}-%{release}
|
||||
Requires: python2-devel
|
||||
Obsoletes: numpy-f2py < 1:1.10.1-3
|
||||
%{?python_provide:%python_provide python2-numpy-f2py}
|
||||
|
||||
|
||||
%description -n python2-numpy-f2py
|
||||
This package includes a version of f2py that works properly with NumPy.
|
||||
|
||||
|
||||
%package -n python2-numpy-doc
|
||||
Summary: Documentation for numpy
|
||||
Requires: python2-%{name} = %{epoch}:%{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n python2-numpy-doc
|
||||
This package provides the complete documentation for NumPy.
|
||||
|
||||
%if %{with python3}
|
||||
%package -n python3-numpy
|
||||
Summary: A fast multidimensional array facility for Python
|
||||
|
||||
Group: Development/Languages
|
||||
License: BSD
|
||||
%{?python_provide:%python_provide python3-numpy}
|
||||
Provides: libnpymath-static = %{epoch}:%{version}-%{release}
|
||||
Provides: libnpymath-static%{?_isa} = %{epoch}:%{version}-%{release}
|
||||
Provides: numpy = %{epoch}:%{version}-%{release}
|
||||
Provides: numpy%{?_isa} = %{epoch}:%{version}-%{release}
|
||||
Obsoletes: numpy < 1:1.10.1-3
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-nose
|
||||
BuildRequires: gcc-gfortran gcc gcc-c++
|
||||
BuildRequires: lapack-devel
|
||||
%if 0%{?fedora}
|
||||
BuildRequires: libdivide-devel
|
||||
%endif
|
||||
BuildRequires: ninja-build
|
||||
%if %{with tests}
|
||||
BuildRequires: python3-hypothesis
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-test
|
||||
BuildRequires: python3-typing-extensions
|
||||
%endif
|
||||
BuildRequires: %{blaslib}-devel
|
||||
BuildRequires: chrpath
|
||||
|
||||
%if !0%{?fedora}
|
||||
Provides: bundled(libdivide) = 3.0
|
||||
%endif
|
||||
|
||||
%description -n python3-numpy
|
||||
NumPy is a general-purpose array-processing package designed to
|
||||
@ -112,12 +97,14 @@ this package is a version of f2py that works properly with NumPy.
|
||||
|
||||
%package -n python3-numpy-f2py
|
||||
Summary: f2py for numpy
|
||||
Group: Development/Libraries
|
||||
Requires: python3-numpy = %{epoch}:%{version}-%{release}
|
||||
Requires: python3-numpy%{?_isa} = %{epoch}:%{version}-%{release}
|
||||
Requires: python3-devel
|
||||
Provides: python3-f2py = %{version}-%{release}
|
||||
Obsoletes: python3-f2py <= 2.45.241_1927
|
||||
%{?python_provide:%python_provide python3-numpy-f2py}
|
||||
Provides: f2py = %{epoch}:%{version}-%{release}
|
||||
Provides: numpy-f2py = %{epoch}:%{version}-%{release}
|
||||
Obsoletes: numpy-f2py < 1:1.10.1-3
|
||||
|
||||
%description -n python3-numpy-f2py
|
||||
This package includes a version of f2py that works properly with NumPy.
|
||||
@ -130,64 +117,47 @@ BuildArch: noarch
|
||||
%description -n python3-numpy-doc
|
||||
This package provides the complete documentation for NumPy.
|
||||
|
||||
%endif # with python3
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}%{?relc}
|
||||
#%setup -q -n numpy-cc2b04
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
# workaround for rhbz#849713
|
||||
# http://mail.scipy.org/pipermail/numpy-discussion/2012-July/063530.html
|
||||
rm numpy/distutils/command/__init__.py && touch numpy/distutils/command/__init__.py
|
||||
# Enable build with Python 3.13
|
||||
# See: https://github.com/numpy/numpy/commit/82d7657ce39c97fcfd86e1a5acee8b5d00682169
|
||||
sed -i 's/requires-python = ">=3.9,<3.13"/requires-python = ">=3.9"/' pyproject.toml
|
||||
|
||||
%ifarch %{openblas_arches}
|
||||
# openblas is provided by flexiblas by default; otherwise,
|
||||
# Use openblas pthreads as recommended by upstream (see comment in site.cfg.example)
|
||||
cat >> site.cfg <<EOF
|
||||
[openblas]
|
||||
libraries = %{blaslib}%{blasvar}
|
||||
library_dirs = %{_libdir}
|
||||
openblas_libs = openblasp
|
||||
EOF
|
||||
%else
|
||||
# Atlas 3.10 library names
|
||||
%if 0%{?fedora} >= 21 || 0%{?rhel} > 7
|
||||
cat >> site.cfg <<EOF
|
||||
[atlas]
|
||||
library_dirs = %{_libdir}/atlas
|
||||
atlas_libs = satlas
|
||||
EOF
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora}
|
||||
# Unbundle libdivide
|
||||
sed -i 's,"numpy/libdivide/libdivide.h",<libdivide.h>,' \
|
||||
numpy/core/src/umath/loops.c.src
|
||||
%endif
|
||||
|
||||
%if %{with python3}
|
||||
rm -rf %{py3dir}
|
||||
cp -a . %{py3dir}
|
||||
%endif
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires -R -Csetup-args=-Dblas=flexiblas -Csetup-args=-Dlapack=lapack
|
||||
|
||||
%build
|
||||
%set_build_flags
|
||||
%if %{with python3}
|
||||
pushd %{py3dir}
|
||||
%ifarch %{openblas_arches}
|
||||
env OPENBLAS=%{_libdir} \
|
||||
# Allow libdivide to use vector instructions where possible
|
||||
%ifarch x86_64
|
||||
%if 0%{?eln} || 0%{?rhel} > 9
|
||||
# x86_64-v3
|
||||
sed -i '/libdivide\.h/i#define LIBDIVIDE_AVX2' numpy/core/src/umath/loops.c.src
|
||||
%else
|
||||
env ATLAS=%{_libdir} \
|
||||
# x86_64-v1 or x86_64-v2
|
||||
sed -i '/libdivide\.h/i#define LIBDIVIDE_SSE2' numpy/core/src/umath/loops.c.src
|
||||
%endif
|
||||
%elifarch aarch64
|
||||
sed -i '/libdivide\.h/i#define LIBDIVIDE_NEON' numpy/core/src/umath/loops.c.src
|
||||
%endif
|
||||
BLAS=%{_libdir} \
|
||||
LAPACK=%{_libdir} CFLAGS="%{optflags}" \
|
||||
%{__python3} setup.py build
|
||||
popd
|
||||
%endif # with _python3
|
||||
|
||||
%ifarch %{openblas_arches}
|
||||
env OPENBLAS=%{_libdir} \
|
||||
%else
|
||||
env ATLAS=%{_libdir} \
|
||||
%endif
|
||||
BLAS=%{_libdir} \
|
||||
LAPACK=%{_libdir} CFLAGS="%{optflags}" \
|
||||
%{__python2} setup.py build
|
||||
%pyproject_wheel -Csetup-args=-Dblas=flexiblas -Csetup-args=-Dlapack=lapack
|
||||
|
||||
%install
|
||||
mkdir docs
|
||||
@ -195,119 +165,44 @@ pushd docs
|
||||
unzip %{SOURCE1}
|
||||
popd
|
||||
|
||||
# first install python3 so the binaries are overwritten by the python2 ones
|
||||
%if %{with python3}
|
||||
pushd %{py3dir}
|
||||
#%%{__python2} setup.py install -O1 --skip-build --root %%{buildroot}
|
||||
# skip-build currently broken, this works around it for now
|
||||
%ifarch %{openblas_arches}
|
||||
env OPENBLAS=%{_libdir} \
|
||||
%else
|
||||
env ATLAS=%{_libdir} \
|
||||
%endif
|
||||
FFTW=%{_libdir} BLAS=%{_libdir} \
|
||||
LAPACK=%{_libdir} CFLAGS="%{optflags}" \
|
||||
%{__python3} setup.py install --root %{buildroot}
|
||||
%pyproject_install
|
||||
pushd %{buildroot}%{_bindir} &> /dev/null
|
||||
|
||||
# The custom install script gets the Python version from the executable name,
|
||||
# e.g. "python3" -> "3", but when built by "platform-python" it guesses the
|
||||
# version as "rm-python". Renaming the file here is the easiest correction.
|
||||
mv f2pyrm-python f2py3
|
||||
|
||||
ln -s f2py f2py3
|
||||
ln -s f2py f2py%{python3_version}
|
||||
ln -s f2py3 f2py.numpy
|
||||
popd &> /dev/null
|
||||
|
||||
popd
|
||||
|
||||
%endif # with python3
|
||||
|
||||
#%%{__python2} setup.py install -O1 --skip-build --root %%{buildroot}
|
||||
# skip-build currently broken, this works around it for now
|
||||
%ifarch %{openblas_arches}
|
||||
env OPENBLAS=%{_libdir} \
|
||||
%else
|
||||
env ATLAS=%{_libdir} \
|
||||
%endif
|
||||
FFTW=%{_libdir} BLAS=%{_libdir} \
|
||||
LAPACK=%{_libdir} CFLAGS="%{optflags}" \
|
||||
%{__python2} setup.py install --root %{buildroot}
|
||||
|
||||
pushd %{buildroot}%{_bindir} &> /dev/null
|
||||
# symlink for anyone who was using f2py.numpy
|
||||
mv f2py{2,-%{python2_version}}
|
||||
ln -s f2py-%{python2_version} f2py-2
|
||||
ln -s f2py-%{python2_version} f2py2
|
||||
popd &> /dev/null
|
||||
#install -D -p -m 0644 docs/f2py/f2py.1 %{buildroot}%{_mandir}/man1/f2py.1
|
||||
|
||||
#symlink for includes, BZ 185079
|
||||
mkdir -p %{buildroot}%{_includedir}
|
||||
ln -s %{python2_sitearch}/%{name}/core/include/numpy/ %{buildroot}%{_includedir}/numpy
|
||||
|
||||
ln -s %{python3_sitearch}/%{name}/core/include/numpy/ %{buildroot}%{_includedir}/numpy
|
||||
|
||||
%if 0%{?fedora}
|
||||
rm %{buildroot}%{python3_sitearch}/numpy/core/include/numpy/random/libdivide.h
|
||||
%endif
|
||||
|
||||
%check
|
||||
# Having LDFLAGS set in the environment (for Flatpak builds, in particular), breaks
|
||||
# f2py Makefiles which use that variable like: 'LDFLAGS = -s -shared'
|
||||
unset LDFLAGS
|
||||
pushd doc &> /dev/null
|
||||
PATH="%{buildroot}%{_bindir}:${PATH}" \
|
||||
PYTHONPATH="%{buildroot}%{python2_sitearch}" \
|
||||
%{__python2} -c "import pkg_resources, numpy, sys ; sys.exit(0 if numpy.test(verbose=2).wasSuccessful() else 1)" \
|
||||
%ifarch s390 s390x
|
||||
|| :
|
||||
%if %{with tests}
|
||||
export PYTHONPATH=%{buildroot}%{python3_sitearch}
|
||||
# test_ppc64_ibm_double_double128 is unnecessary now that ppc64le has switched long doubles to IEEE format.
|
||||
# https://github.com/numpy/numpy/issues/21094
|
||||
%ifarch %{ix86}
|
||||
# Weird RuntimeWarnings on i686, similar to https://github.com/numpy/numpy/issues/13173
|
||||
# Some tests also overflow on 32bit
|
||||
%global ix86_k and not test_vector_matrix_values and not test_matrix_vector_values and not test_identityless_reduction_huge_array and not (TestKind and test_all)
|
||||
%endif
|
||||
# don't remove this comment
|
||||
popd &> /dev/null
|
||||
|
||||
%if %{with python3}
|
||||
pushd doc &> /dev/null
|
||||
PATH="%{buildroot}%{_bindir}:${PATH}" \
|
||||
PYTHONPATH="%{buildroot}%{python3_sitearch}" \
|
||||
%{__python3} -c "import pkg_resources, numpy, sys ; sys.exit(0 if numpy.test(verbose=2).wasSuccessful() else 1)" \
|
||||
%ifarch s390 s390x
|
||||
|| :
|
||||
# test_deprecate_... fail on Python 3.13+ due to docstrings being dedented
|
||||
# Upstream has removed the tests in git HEAD.
|
||||
%if v"0%{python3_version}" >= v"3.13"
|
||||
%global py313_k and not test_deprecate_help_indentation and not test_deprecate_preserve_whitespace
|
||||
%endif
|
||||
%ifnarch %{ix86}
|
||||
python3 runtests.py --no-build -- -ra -k 'not test_ppc64_ibm_double_double128 %{?ix86_k} %{?py313_k}' \
|
||||
-W "ignore:pkg_resources is deprecated as an API::pkg_resources"
|
||||
%endif
|
||||
# don't remove this comment
|
||||
popd &> /dev/null
|
||||
|
||||
%endif # with python3
|
||||
%endif
|
||||
|
||||
|
||||
%files -n python2-numpy
|
||||
%license LICENSE.txt
|
||||
%doc THANKS.txt site.cfg.example
|
||||
%dir %{python2_sitearch}/%{name}
|
||||
%{python2_sitearch}/%{name}/*.py*
|
||||
%{python2_sitearch}/%{name}/core
|
||||
%{python2_sitearch}/%{name}/distutils
|
||||
%{python2_sitearch}/%{name}/doc
|
||||
%{python2_sitearch}/%{name}/fft
|
||||
%{python2_sitearch}/%{name}/lib
|
||||
%{python2_sitearch}/%{name}/linalg
|
||||
%{python2_sitearch}/%{name}/ma
|
||||
%{python2_sitearch}/%{name}/random
|
||||
%{python2_sitearch}/%{name}/testing
|
||||
%{python2_sitearch}/%{name}/tests
|
||||
%{python2_sitearch}/%{name}/compat
|
||||
%{python2_sitearch}/%{name}/matrixlib
|
||||
%{python2_sitearch}/%{name}/polynomial
|
||||
%{python2_sitearch}/%{name}-*.egg-info
|
||||
%{_includedir}/numpy
|
||||
%exclude %{python2_sitearch}/%{name}/LICENSE.txt
|
||||
|
||||
%files -n python2-numpy-f2py
|
||||
%doc docs/f2py/*.html
|
||||
#%{_mandir}/man*/*
|
||||
%{_bindir}/f2py2
|
||||
%{_bindir}/f2py-2
|
||||
%{_bindir}/f2py-%{python2_version}
|
||||
%{python2_sitearch}/%{name}/f2py
|
||||
|
||||
%files -n python2-numpy-doc
|
||||
%doc docs/*
|
||||
|
||||
%if %{with python3}
|
||||
%files -n python3-numpy
|
||||
%license LICENSE.txt
|
||||
%doc THANKS.txt site.cfg.example
|
||||
@ -315,7 +210,6 @@ popd &> /dev/null
|
||||
%dir %{python3_sitearch}/%{name}
|
||||
%{python3_sitearch}/%{name}/*.py*
|
||||
%{python3_sitearch}/%{name}/core
|
||||
%{python3_sitearch}/%{name}/distutils
|
||||
%{python3_sitearch}/%{name}/doc
|
||||
%{python3_sitearch}/%{name}/fft
|
||||
%{python3_sitearch}/%{name}/lib
|
||||
@ -327,75 +221,292 @@ popd &> /dev/null
|
||||
%{python3_sitearch}/%{name}/compat
|
||||
%{python3_sitearch}/%{name}/matrixlib
|
||||
%{python3_sitearch}/%{name}/polynomial
|
||||
%{python3_sitearch}/%{name}-*.egg-info
|
||||
%exclude %{python3_sitearch}/%{name}/LICENSE.txt
|
||||
%{python3_sitearch}/%{name}-*.dist-info
|
||||
%{_includedir}/numpy
|
||||
%{python3_sitearch}/%{name}/__init__.pxd
|
||||
%{python3_sitearch}/%{name}/__init__.cython-30.pxd
|
||||
%{python3_sitearch}/%{name}/py.typed
|
||||
%{python3_sitearch}/%{name}/typing/
|
||||
%{python3_sitearch}/%{name}/array_api/
|
||||
%{python3_sitearch}/%{name}/_core/
|
||||
%{python3_sitearch}/%{name}/_pyinstaller/
|
||||
%{python3_sitearch}/%{name}/_typing/
|
||||
%{python3_sitearch}/%{name}/_utils/
|
||||
|
||||
%files -n python3-numpy-f2py
|
||||
%{_bindir}/f2py
|
||||
%{_bindir}/f2py3
|
||||
%{_bindir}/f2py.numpy
|
||||
%{_bindir}/f2py%{python3_version}
|
||||
%{python3_sitearch}/%{name}/f2py
|
||||
|
||||
%files -n python3-numpy-doc
|
||||
%doc docs/*
|
||||
|
||||
%endif # with python3
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jan 08 2021 Nikola Forró <nforro@redhat.com> - 1:1.14.2-16
|
||||
- Fix include path
|
||||
- Related: rhbz#1907601
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1:1.26.4-5
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Wed Dec 16 2020 Nikola Forró <nforro@redhat.com> - 1:1.14.2-15
|
||||
- Fix %check
|
||||
- Related: rhbz#1907601
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1:1.26.4-4
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Tue Dec 15 2020 Nikola Forró <nforro@redhat.com> - 1:1.14.2-14
|
||||
- Use macros rather than hardcoded paths
|
||||
- Resolves: rhbz#1907601
|
||||
* Wed Jun 05 2024 Lukáš Zaoral <lzaoral@redhat.com> - 1:1.26.4-3
|
||||
- remove redundant patchelf dependency (RHEL-36334)
|
||||
|
||||
* Wed Jun 05 2019 Nikola Forró <nforro@redhat.com> - 1:1.14.2-13
|
||||
- Fix CVE-2019-6446
|
||||
- Resolves: rhbz#1668829
|
||||
* Fri Mar 15 2024 Jerry James <loganjerry@gmail.com> - 1:1.26.4-2
|
||||
- Unbundle libdivide in Fedora
|
||||
- Let libdivide use vector instructions when possible
|
||||
|
||||
* Thu May 30 2019 Charalampos Stratakis <cstratak@redhat.com> - 1.14.2-12
|
||||
- Set proper build flags for https://fedoraproject.org/wiki/Changes/Python_Extension_Flags
|
||||
- Resolves: rhbz#1715036
|
||||
* Mon Feb 26 2024 Gwyn Ciesla <gwync@protonmail.com> - 1:1.26.4-1
|
||||
- 1.26.4
|
||||
|
||||
* Thu May 30 2019 Nikola Forró <nforro@redhat.com> - 1.14.2-11
|
||||
- Fix broken float128 on all arches except x86_64
|
||||
- Resolves: rhbz#1688709
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.26.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 1.14.2-10
|
||||
- Bumping due to problems with modular RPM upgrade path
|
||||
- Resolves: rhbz#1695587
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.26.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Tue Oct 09 2018 Lumír Balhar <lbalhar@redhat.com> - 1:1.14.2-9
|
||||
- Remove unversioned provides
|
||||
- Resolves: rhbz#1628242
|
||||
* Mon Jan 15 2024 Miro Hrončok <mhroncok@redhat.com> - 1:1.26.2-2
|
||||
- Add missing licenses to the License tag
|
||||
|
||||
* Tue Oct 02 2018 Lumír Balhar <lbalhar@redhat.com> - 1:1.14.2-8
|
||||
- Fix unversioned requires/buildrequires
|
||||
- Resolves: rhbz#1628242
|
||||
* Tue Dec 26 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 1:1.26.2-1
|
||||
- 1.26.2
|
||||
|
||||
* Tue Aug 14 2018 Lumír Balhar <lbalhar@redhat.com> - 1:1.14.2-7
|
||||
- Bring symlink f2py2 back for symlink modules
|
||||
- Resolves: rhbz#1615727
|
||||
* Mon Nov 20 2023 Gwyn Ciesla <gwync@protonmail.com> - 1:1.26.0-2
|
||||
- Fix FTBFS with Python 3.13.
|
||||
|
||||
* Wed Aug 08 2018 Lumír Balhar <lbalhar@redhat.com> - 1:1.14.2-6
|
||||
- Remove unversioned binaries from python2 subpackage
|
||||
- Resolves: rhbz#1613343
|
||||
* Tue Sep 19 2023 Gwyn Ciesla <gwync@protonmail.com> - 1:1.26.0-1
|
||||
- 1.26.0
|
||||
|
||||
* Tue Jul 31 2018 Lumír Balhar <lbalhar@redhat.com> - 1:1.14.2-5
|
||||
- Switch python3 coditions to bcond
|
||||
* Mon Jul 31 2023 Miro Hrončok <mhroncok@redhat.com> - 1:1.24.4-2
|
||||
- Backport support for Cython 3
|
||||
|
||||
* Mon Jun 25 2018 Tomas Orsava <torsava@redhat.com> - 1:1.14.2-4
|
||||
- Use python2 macros instead of unversioned python macros
|
||||
* Tue Jul 18 2023 Gwyn Ciesla <gwync@protonmail.com> - 1:1.24.4-1
|
||||
- 1.24.4
|
||||
|
||||
* Sat Apr 28 2018 Tomas Orsava <torsava@redhat.com> - 1:1.14.2-3
|
||||
- Change the shebang of f2py to the versioned /usr/bin/python2
|
||||
* Wed Jul 05 2023 Scott Talbert <swt@techie.net> - 1:1.24.3-4
|
||||
- Fix FTBFS with Python 3.12
|
||||
|
||||
* Fri Apr 27 2018 Tomas Orsava <torsava@redhat.com> - 1:1.14.2-2
|
||||
- Fix incorrect Python version guess when building on Platform-Python
|
||||
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 1:1.24.3-3
|
||||
- Rebuilt for Python 3.12
|
||||
|
||||
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1:1.24.3-2
|
||||
- Bootstrap for Python 3.12
|
||||
|
||||
* Mon Apr 24 2023 Gwyn Ciesla <gwync@protonmail.com> - 1:1.24.3-1
|
||||
- 1.24.3
|
||||
|
||||
* Wed Mar 08 2023 Gwyn Ciesla <gwync@protonmail.com> - 1:1.24.1-3
|
||||
- migrated to SPDX license
|
||||
|
||||
* Fri Jan 27 2023 Pavel Simovec <psimovec@redhat.com> - 1:1.24.1-2
|
||||
- Generalize documentation Source link
|
||||
- Add forgotten documentation file
|
||||
|
||||
* Thu Jan 26 2023 Pavel Simovec <psimovec@redhat.com> - 1:1.24.1-1
|
||||
- Update to 1.24.1
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.23.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Dec 02 2022 Charalampos Stratakis <cstratak@redhat.com> - 1:1.23.5-1
|
||||
- Update to 1.23.5
|
||||
|
||||
* Fri Oct 21 2022 Miro Hrončok <mhroncok@redhat.com> - 1:1.23.4-1
|
||||
- Update to 1.23.4
|
||||
- Use distutils from setuptools to build the package
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.22.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Mon Jul 18 2022 Miro Hrončok <mhroncok@redhat.com> - 1:1.22.0-6
|
||||
- GenericAlias fixes for Python 3.11.0b4+
|
||||
|
||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1:1.22.0-5
|
||||
- Rebuilt for Python 3.11
|
||||
|
||||
* Mon Mar 07 2022 Karolina Surma <ksurma@redhat.com> - 1:1.22.0-4
|
||||
- Work around the test failures with setuptools >= 60.x by using the Python's
|
||||
standard library distutils
|
||||
- Build numpy using Python's standard library distutils
|
||||
|
||||
* Sat Feb 19 2022 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1:1.22.0-3
|
||||
- Re-enable tests
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.22.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jan 06 2022 Gwyn Ciesla <gwync@protonmail.com> - 1:1.22.0-1
|
||||
- 1.22.0
|
||||
|
||||
* Wed Dec 22 2021 Gwyn Ciesla <gwync@protonmail.com> - 1:1.21.5-1
|
||||
- 1.21.5
|
||||
|
||||
* Thu Aug 05 2021 Gwyn Ciesla <gwync@protonmail.com> - 1:1.21.1-1
|
||||
- 1.21.1, disabing tests as they depend on .coveragerc, not shipped.
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.20.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1:1.20.1-4
|
||||
- Rebuilt for Python 3.10
|
||||
|
||||
* Fri May 07 2021 Gwyn Ciesla <gwync@protonmail.com> - 1:1.20.1-3
|
||||
- Python 3.10 fix.
|
||||
- Xfail TestCond.test_nan.
|
||||
|
||||
* Fri Feb 12 2021 Nikola Forró <nforro@redhat.com> - 1:1.20.1-2
|
||||
- Fix build requirements, hypothesis is a test dependency
|
||||
|
||||
* Mon Feb 08 2021 Gwyn Ciesla <gwync@protonmail.com> 1:1.20.1-1
|
||||
- 1.21.1
|
||||
|
||||
* Mon Feb 01 2021 Gwyn Ciesla <gwync@protonmail.com> - 1:1.20.0-1
|
||||
- 1.20.0 final.
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.20.0-0.2.rc2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Mon Jan 04 2021 Nikola Forró <nforro@redhat.com> - 1:1.20.0-0.1.rc2
|
||||
- Generate the main dispatcher config header into the build dir
|
||||
|
||||
* Mon Dec 28 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.20.0-0.rc2
|
||||
- 1.20.0 rc2
|
||||
|
||||
* Tue Nov 03 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.19.4-1
|
||||
- 1.19.4
|
||||
|
||||
* Thu Oct 29 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.19.3-1
|
||||
- 1.19.3
|
||||
|
||||
* Tue Oct 27 2020 Nikola Forró <nforro@redhat.com> - 1:1.19.2-2
|
||||
- Make test suite work in FIPS (140-2) Mode
|
||||
|
||||
* Thu Sep 10 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.19.2-1
|
||||
- 1.19.2
|
||||
|
||||
* Sun Aug 16 2020 Iñaki Úcar <iucar@fedoraproject.org> - 1:1.19.1-3
|
||||
- https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.19.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jul 22 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.19.1-1
|
||||
- 1.19.1
|
||||
|
||||
* Thu Jul 16 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.19.0-2
|
||||
- Assume old-style numpy provides from python2-numpy
|
||||
|
||||
* Mon Jun 22 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.19.0-1
|
||||
- 1.19.0 final.
|
||||
|
||||
* Mon Jun 01 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.19.0-0.rc2
|
||||
- 1.19.0 rc2
|
||||
|
||||
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1:1.18.4-3
|
||||
- Rebuilt for Python 3.9
|
||||
|
||||
* Fri May 08 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.18.4-2
|
||||
- Own __pycache__ dir, 1833392
|
||||
|
||||
* Sun May 03 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.18.4-1
|
||||
- 1.18.4
|
||||
|
||||
* Mon Apr 20 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.18.3-1
|
||||
- 1.18.3
|
||||
|
||||
* Wed Mar 18 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.18.2-1
|
||||
- 1.18.2
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.18.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Mon Jan 06 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.18.1-1
|
||||
- 1.18.1
|
||||
|
||||
* Mon Dec 30 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.18.0-1
|
||||
- 1.18.0
|
||||
|
||||
* Mon Nov 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1:1.17.4-2
|
||||
- Backport patch for s390x failures
|
||||
- Enable non-broken tests on ppc64le
|
||||
|
||||
* Mon Nov 11 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.17.4-1
|
||||
- 1.17.4
|
||||
|
||||
* Fri Oct 18 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.17.3-1
|
||||
- 1.17.3
|
||||
|
||||
* Sat Sep 07 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.17.2-1
|
||||
- 1.17.2
|
||||
|
||||
* Thu Aug 29 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.17.1-1
|
||||
- 1.17.1
|
||||
|
||||
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.17.0-3
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Thu Aug 01 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.17.0-2
|
||||
- Reintroduce libnpymath.a (#1735674)
|
||||
|
||||
* Tue Jul 30 2019 Gwyn Ciesla <gwync@protonmail.com> 1:1.17.0-1
|
||||
- 1.17.0, split out Python 2.
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.16.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Thu Jun 20 2019 Kalev Lember <klember@redhat.com> - 1:1.16.4-2
|
||||
- Avoid hardcoding /usr prefix
|
||||
|
||||
* Tue May 28 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.16.4-1
|
||||
- 1.16.4
|
||||
|
||||
* Thu May 16 2019 Orion Poplawski <orion@nwra.com> - 1:1.16.3-2
|
||||
- Build only with openblasp (bugz#1709161)
|
||||
|
||||
* Mon Apr 22 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.16.3-1
|
||||
- 1.16.3.
|
||||
|
||||
* Tue Feb 26 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.16.2-1
|
||||
- 1.16.2.
|
||||
|
||||
* Fri Feb 01 2019 Gwyn Ciesla <limburgher@gmail.com> - 1:1.16.1-1
|
||||
- 1.16.1.
|
||||
|
||||
* Tue Jan 22 2019 Gwyn Ciesla <limburgher@gmail.com> - 1:1.16.0-1
|
||||
- 1.16.0.
|
||||
|
||||
* Wed Aug 29 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1:1.15.1-2
|
||||
- Switch to pytest for running tests during check
|
||||
- Stop ignoring failures when running tests
|
||||
- Set PATH in check so that f2py tests work
|
||||
- Update docs to match release
|
||||
- Remove outdated workaround from rhbz#849713
|
||||
|
||||
* Wed Aug 22 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1:1.15.1-1
|
||||
- Update to latest version
|
||||
|
||||
* Sat Aug 11 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1:1.15.0-2
|
||||
- Fix broken build on s390x
|
||||
- Remove bytecode produced by pytest
|
||||
- Re-enable tests on s390x
|
||||
|
||||
* Tue Jul 24 2018 Gwyn Ciesla <limburgher@gmail.com> - 1:1.15.0-1
|
||||
- 1.15.0
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.14.5-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.14.5-2
|
||||
- Rebuilt for Python 3.7
|
||||
|
||||
* Wed Jun 13 2018 Gwyn Ciesla <limburgher@gmail.com> - 1:1.14.5-1
|
||||
- 1.14.5
|
||||
|
||||
* Tue May 01 2018 Gwyn Ciesla <limburgher@gmail.com> - 1:1.14.3-1
|
||||
- 1.14.3
|
||||
|
||||
* Mon Mar 12 2018 Gwyn Ciesla <limburgher@gmail.com> - 1:1.14.2-1
|
||||
- 1.14.2
|
||||
28
replace-deprecated-ctypes.ARRAY.patch
Normal file
28
replace-deprecated-ctypes.ARRAY.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From d9155244ea06705ebd9194cc7a621e82316b61ba Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
||||
Date: Mon, 20 Nov 2023 11:36:36 +0100
|
||||
Subject: [PATCH] MAINT: Replace deprecated ctypes.ARRAY(item_type, size) with
|
||||
item_type * size
|
||||
|
||||
See https://github.com/python/cpython/issues/105733
|
||||
---
|
||||
numpy/core/tests/test_ufunc.py | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/numpy/core/tests/test_ufunc.py b/numpy/core/tests/test_ufunc.py
|
||||
index a7401ff616f..fc1fd5af169 100644
|
||||
--- a/numpy/core/tests/test_ufunc.py
|
||||
+++ b/numpy/core/tests/test_ufunc.py
|
||||
@@ -2985,9 +2985,9 @@ def test_resolve_dtypes_reduction_errors(self):
|
||||
reason="`ctypes.pythonapi` required for capsule unpacking.")
|
||||
def test_loop_access(self):
|
||||
# This is a basic test for the full strided loop access
|
||||
- data_t = ct.ARRAY(ct.c_char_p, 2)
|
||||
- dim_t = ct.ARRAY(ct.c_ssize_t, 1)
|
||||
- strides_t = ct.ARRAY(ct.c_ssize_t, 2)
|
||||
+ data_t = ct.c_char_p * 2
|
||||
+ dim_t = ct.c_ssize_t * 1
|
||||
+ strides_t = ct.c_ssize_t * 2
|
||||
strided_loop_t = ct.CFUNCTYPE(
|
||||
ct.c_int, ct.c_void_p, data_t, dim_t, strides_t, ct.c_void_p)
|
||||
|
||||
2
sources
Normal file
2
sources
Normal file
@ -0,0 +1,2 @@
|
||||
SHA512 (numpy-1.26.4.tar.gz) = f7121ab4099fa0686f9c095d456baa4a5869d651d7b7a06385f885f329cf08f11024b5df5e7b4ee705970062a8102ec4f709512eabbfd5c9fccce4ef83b9c208
|
||||
SHA512 (numpy-html.zip) = 9c38a65fd33be28cec9a27d2b23b50cb215fe7fd775f467a78a21f4649466868a24b6004ebf1b31e0eca62c2e5582e89923ff2bb4b3ae70dfa9292672e7b1eca
|
||||
Loading…
Reference in New Issue
Block a user