Accepting request 489486 from devel:languages:python

Update to 2.6.2
Implement single-spec version

OBS-URL: https://build.opensuse.org/request/show/489486
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numexpr?expand=0&rev=5
This commit is contained in:
2017-05-03 13:55:01 +00:00
committed by Git OBS Bridge
parent c71a3d34d1
commit fbd94d8e53
4 changed files with 76 additions and 14 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:052397670dc56d7845ff894cd7d858e4f115491ecd93bcc0eda5cb83990c5da3
size 87481

3
numexpr-2.6.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6ab8ff5c19e7f452966bf5a3220b845cf3244fe0b96544f7f9acedcc2db5c705
size 90970

View File

@@ -1,3 +1,61 @@
-------------------------------------------------------------------
Wed Apr 19 22:13:57 UTC 2017 - toddrme2178@gmail.com
- Source url must be https.
-------------------------------------------------------------------
Wed Apr 19 18:38:25 UTC 2017 - toddrme2178@gmail.com
- Update to 2.6.2
* Updates to keep with API changes in newer NumPy versions (#228).
Thanks to Oleksandr Pavlyk.
* Removed several warnings (#226 and #227). Thanks to Oleksander Pavlyk.
* Fix bugs in function `stringcontains()` (#230). Thanks to Alexander Shadchin.
* Detection of the POWER processor (#232). Thanks to Breno Leitao.
* Fix pow result casting (#235). Thanks to Fernando Seiti Furusato.
* Fix integers to negative integer powers (#240). Thanks to Antonio Valentino.
* Detect numpy exceptions in expression evaluation (#240). Thanks to Antonio Valentino.
* Better handling of RC versions (#243). Thanks to Antonio Valentino.
- Update to 2.6.1
* Fixed a performance regression in some situations as consequence of
increasing too much the BLOCK_SIZE1 constant. After more careful
benchmarks (both in VML and non-VML modes), the value has been set
again to 1024 (down from 8192). The benchmarks have been made with
a relatively new processor (Intel Xeon E3-1245 v5 @ 3.50GHz), so
they should work well for a good range of processors again.
* Added NetBSD support to CPU detection. Thanks to Thomas Klausner.
- Update to 2.6.0
* Introduced a new re_evaluate() function for re-evaluating the
previous executed array expression without any check. This is meant
for accelerating loops that are re-evaluating the same expression
repeatedly without changing anything else than the operands. If
unsure, use evaluate() which is safer.
* The BLOCK_SIZE1 and BLOCK_SIZE2 constants have been re-checked in
order to find a value maximizing most of the benchmarks in bench/
directory. The new values (8192 and 16 respectively) give somewhat
better results (~5%) overall. The CPU used for fine tuning is a
relatively new Haswell processor (E3-1240 v3).
* The '--name' flag for `setup.py` returning the name of the package
is honored now (issue #215).
- Update to 2.5.2
* conj() and abs() actually added as VML-powered functions, preventing
the same problems than log10() before (PR #212). Thanks to Tom Kooij
for the fix!
- Update to 2.5.1
* Fix for log10() and conj() functions. These produced wrong results
when numexpr was compiled with Intel's MKL (which is a popular build
since Anaconda ships it by default) and non-contiguous data (issue
#210). Thanks to Arne de Laat and Tom Kooij for reporting and
providing a nice test unit.
* Fix that allows numexpr-powered apps to be profiled with pympler.
Thanks to @nbecker.
- Update to 2.5
* Added locking for allowing the use of numexpr in multi-threaded
callers (this does not prevent numexpr to use multiple cores
simultaneously). (PR #199, Antoine Pitrou, PR #200, Jenn Olsen).
* Added new min() and max() functions (PR #195, CJ Carey).
- Implement single-spec version
-------------------------------------------------------------------
Mon Feb 1 11:39:24 UTC 2016 - toddrme2178@gmail.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-numexpr
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,22 +16,24 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-numexpr
Version: 2.4.6
Version: 2.6.2
Release: 0
Url: https://github.com/pydata/numexpr/
Summary: Fast numerical expression evaluator for NumPy
License: MIT
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/n/numexpr/numexpr-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/n/numexpr/numexpr-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: python-devel >= 2.5
BuildRequires: python-numpy-devel >= 1.6
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module numpy-devel >= 1.6}
Requires: python-numpy >= 1.6
%if 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
%python_subpackages
%description
Numexpr is a fast numerical expression evaluator for NumPy. With it,
@@ -44,12 +46,14 @@ and use less memory than doing the same calculation in Python.
sed -i '/^#!/ d' numexpr/cpuinfo.py
%build
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc ANNOUNCE.rst AUTHORS.txt LICENSE.txt README.rst RELEASE_NOTES.rst site.cfg.example
%{python_sitearch}/numexpr/