Browse Source

update module

master
parent
commit
d754abdab4
  1. 29
      python-math/python-math.patch
  2. 60
      python-math/python-math.spec

29
python-math/python-math.patch

@ -1,11 +1,28 @@
Index: scipy-1.6.3/scipy/optimize/rectangular_lsap/rectangular_lsap.cpp
--- scipy-1.6.3/scipy/optimize/rectangular_lsap/rectangular_lsap.cpp.orig 2021-10-08 22:22:00.736361000 +0200
+++ scipy-1.6.3/scipy/optimize/rectangular_lsap/rectangular_lsap.cpp 2021-10-08 22:22:31.488808000 +0200
Index: scipy-1.7.1/scipy/_lib/boost/boost/math/tools/promotion.hpp
--- scipy-1.7.1/scipy/_lib/boost/boost/math/tools/promotion.hpp.orig 2021-06-02 18:00:57.049771300 +0200
+++ scipy-1.7.1/scipy/_lib/boost/boost/math/tools/promotion.hpp 2021-10-23 10:19:28.330129000 +0200
@@ -140,13 +140,6 @@
>::type
>::type
>::type type;
-
-#ifdef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
- //
- // Guard against use of long double if it's not supported:
- //
- BOOST_STATIC_ASSERT_MSG((0 == ::boost::is_same<type, long double>::value), "Sorry, but this platform does not have sufficient long double support for the special functions to be reliably implemented.");
-#endif
};
//
Index: scipy-1.7.1/scipy/optimize/rectangular_lsap/rectangular_lsap.cpp
--- scipy-1.7.1/scipy/optimize/rectangular_lsap/rectangular_lsap.cpp.orig 2021-08-01 22:54:35.569044600 +0200
+++ scipy-1.7.1/scipy/optimize/rectangular_lsap/rectangular_lsap.cpp 2021-10-20 23:59:54.594891000 +0200
@@ -41,6 +41,7 @@
*/
#include <algorithm>
+#include <cstdint>
#include <cmath>
#include "rectangular_lsap.h"
+#include <cstdint>
#include <vector>
#include <numeric>
#include <algorithm>

60
python-math/python-math.spec

@ -23,11 +23,14 @@
# package versions
%define V_python 3.10
%define V_numpy 1.20.3
%define V_scipy 1.6.3
%define V_scikit 0.24.2
%define V_pythran 0.10.0
%define V_gast 0.5.2
%define V_beniget 0.4.1
%define V_numpy 1.21.2
%define V_scipy 1.7.1
%define V_scikit 1.0
%define V_theano 1.0.5
%define V_pandas 1.2.4
%define V_pandas 1.3.4
# package information
Name: python-math
@ -40,14 +43,17 @@ Class: BASE
Group: Language
License: GPL
Version: %{V_python}
Release: 20211009
Release: 20211023
# list of sources
Source0: https://files.pythonhosted.org/packages/source/n/numpy/numpy-%{V_numpy}.zip
Source1: https://files.pythonhosted.org/packages/source/s/scipy/scipy-%{V_scipy}.tar.gz
Source2: https://files.pythonhosted.org/packages/source/s/scikit-learn/scikit-learn-%{V_scikit}.tar.gz
Source3: https://files.pythonhosted.org/packages/source/T/Theano/Theano-%{V_theano}.tar.gz
Source4: https://files.pythonhosted.org/packages/source/p/pandas/pandas-%{V_pandas}.tar.gz
Source1: https://files.pythonhosted.org/packages/source/p/pythran/pythran-%{V_pythran}.tar.gz
Source2: https://files.pythonhosted.org/packages/source/g/gast/gast-%{V_gast}.tar.gz
Source3: https://files.pythonhosted.org/packages/source/b/beniget/beniget-%{V_beniget}.tar.gz
Source4: https://files.pythonhosted.org/packages/source/s/scipy/scipy-%{V_scipy}.tar.gz
Source5: https://files.pythonhosted.org/packages/source/s/scikit-learn/scikit-learn-%{V_scikit}.tar.gz
Source6: https://files.pythonhosted.org/packages/source/T/Theano/Theano-%{V_theano}.tar.gz
Source7: https://files.pythonhosted.org/packages/source/p/pandas/pandas-%{V_pandas}.tar.gz
Patch0: python-math.patch
# build information
@ -64,6 +70,21 @@ PreReq: openblas
This is a set of Python extension modules for mathematics.
%track
prog python-math:pythran = {
version = %{V_pythran}
url = https://pypi.python.org/pypi/pythran
regex = pythran-(__VER__)\.tar\.gz
}
prog python-math:gast = {
version = %{V_gast}
url = https://pypi.python.org/pypi/gast
regex = gast-(__VER__)\.tar\.gz
}
prog python-math:beniget = {
version = %{V_beniget}
url = https://pypi.python.org/pypi/beniget
regex = beniget-(__VER__)\.tar\.gz
}
prog python-math:numpy = {
version = %{V_numpy}
url = https://pypi.python.org/pypi/numpy
@ -96,6 +117,9 @@ PreReq: openblas
%setup -q -T -D -a 2
%setup -q -T -D -a 3
%setup -q -T -D -a 4
%setup -q -T -D -a 5
%setup -q -T -D -a 6
%setup -q -T -D -a 7
%patch -p0
%build
@ -108,6 +132,24 @@ PreReq: openblas
chmod a+x gcc
PATH=`pwd`:$PATH
HOME=`pwd`
( cd pythran-%{V_pythran}
%{l_prefix}/bin/python \
setup.py install \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
( cd gast-%{V_gast}
%{l_prefix}/bin/python \
setup.py install \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
( cd beniget-%{V_beniget}
%{l_prefix}/bin/python \
setup.py install \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
( cd numpy-%{V_numpy}
( echo "[openblas]"
echo "library_dirs = %{l_prefix}/lib"

Loading…
Cancel
Save