Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
33377d95d2
!55 upgrade to 1.12.0
From: @SuperSix173 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2024-02-23 07:06:28 +00:00
SuperSix173
e69788a5a0 upgrade to v1.12.0
Signed-off-by: SuperSix173 <liuchao173@huawei.com>
2024-02-22 17:45:48 +08:00
openeuler-ci-bot
f68fa9ec47
!54 Fix scipy compile error in cython3
From: @SuperSix173 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2024-02-04 06:10:17 +00:00
SuperSix173
44f8fba6e1 Fix scipy compile error in cython3
Signed-off-by: SuperSix173 <liuchao173@huawei.com>
2024-02-04 11:42:29 +08:00
openeuler-ci-bot
c8a558edc6
!36 【LLVM平行宇宙】Add clang compile support
From: @liyunfei33 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2023-09-25 08:44:59 +00:00
liyunfei
3da1af5fa2 add clang compile support 2023-09-25 11:11:24 +08:00
openeuler-ci-bot
49fb136670
!34 Update to 1.10.1
From: @wk333 
Reviewed-by: @SuperSix173 
Signed-off-by: @SuperSix173
2023-07-20 01:58:23 +00:00
wk333
277c044f6e Update to 1.10.1 2023-07-20 09:13:04 +08:00
openeuler-ci-bot
611db18fd3
!22 Revert
From: @huangtianhua 
Reviewed-by: @licihua 
Signed-off-by: @licihua
2022-07-19 11:07:24 +00:00
huangtianhua
2f7e1d2a0b Revert "Update package scipy of version 1.8.0"
This reverts commit cbcc4a81c601078e20cfe6e60459ca75bd3bbc03.
2022-07-19 17:21:17 +08:00
7 changed files with 59 additions and 34 deletions

BIN
PROPACK.zip Normal file

Binary file not shown.

BIN
array_api_compat.zip Normal file

Binary file not shown.

BIN
highs.zip Normal file

Binary file not shown.

BIN
scipy-1.12.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,26 +1,37 @@
%global _empty_manifest_terminate_build 0 %global debug_package %{nil}
Name: scipy Name: scipy
Version: 1.8.0 Version: 1.12.0
Release: 1 Release: 1
Summary: A Python-based ecosystem of open-source software for mathematics, science, and engineering Summary: A Python-based ecosystem of open-source software for mathematics, science, and engineering
License: Qhull and Apache-2.0 License: Qhull and Apache-2.0
URL: https://www.scipy.org URL: https://www.scipy.org
Source0: https://github.com/scipy/scipy/releases/download/v%{version}/scipy-%{version}.tar.gz Source0: https://github.com/scipy/scipy/releases/download/v%{version}/scipy-%{version}.tar.gz
# https://github.com/data-apis/array-api-compat/archive/affd3a56927d3d1c178023121f43c9fa624eced0.zip
Source1: array_api_compat.zip
# https://github.com/boostorg/math/archive/6bfe5818acdf86432f3e1a78ec5e1d3cdb8c6480.zip
Source2: boost_math.zip
# https://github.com/scipy/HiGHS/archive/4a122958a82e67e725d08153e099efe4dad099a2.zip
Source3: highs.zip
# https://github.com/scipy/unuran/archive/1d315c690787b14781a12e0beca6d25cc75562d6.zip
Source4: unuran.zip
# https://github.com/scipy/PROPACK/archive/96f6800451372dd003e627bbfd732937ac0c685e.zip
Source5: PROPACK.zip
BuildRequires: python3-devel python3-numpy >= 1.8.2 python3-numpy-f2py BuildRequires: python3-devel python3-numpy-f2py
BuildRequires: gcc-c++ openblas-devel gcc-gfortran chrpath BuildRequires: gcc-c++ openblas-devel gcc-gfortran chrpath
BuildRequires: pybind11-devel python3-pybind11 python3-Cython BuildRequires: pybind11-devel python3-pybind11 python3-Cython
BuildRequires: python3-meson-python python3-pip
%description %description
SciPy (pronounced "Sigh Pie") is open-source software for mathematics, science, and engineering. SciPy (pronounced "Sigh Pie") is open-source software for mathematics, science, and engineering.
It includes modules for statistics, optimization, integration, linear algebra, Fourier transforms, It includes modules for statistics, optimization, integration, linear algebra, Fourier transforms,
signal and image processing, ODE solvers, and more. signal and image processing, ODE solvers, and more.
SciPy depends on NumPy, which provides convenient and fast N-dimensional array manipulation. SciPy depends on NumPy, which provides convenient and fast N-dimensional array manipulation.
SciPy is built to work with NumPy arrays, and provides many user-friendly and efficient numerical routines SciPy is built to work with NumPy arrays, and provides many user-friendly and efficient numerical routines
such as routines for numerical integration and optimization. such as routines for numerical integration and optimization.
Together, they run on all popular operating systems, are quick to install, and are free of charge. Together, they run on all popular operating systems, are quick to install, and are free of charge.
NumPy and SciPy are easy to use, but powerful enough to be depended upon by some of the world's leading scientists and engineers. NumPy and SciPy are easy to use, but powerful enough to be depended upon by some of the world's leading scientists and engineers.
If you need to manipulate numbers on a computer and display or publish the results, give SciPy a try! If you need to manipulate numbers on a computer and display or publish the results, give SciPy a try!
%package -n python3-scipy %package -n python3-scipy
@ -33,44 +44,48 @@ python3 package for scipy
%prep %prep
%autosetup -n %{name}-%{version} -p1 %autosetup -n %{name}-%{version} -p1
cat > site.cfg << EOF sed -i '/pythran/d' pyproject.toml
[amd]
library_dirs = %{_libdir}
include_dirs = /usr/include/suitesparse
amd_libs = amd
[umfpack] cat >> pyproject.toml << EOF
library_dirs = %{_libdir}
include_dirs = /usr/include/suitesparse
umfpack_libs = umfpack
[openblas] [tool.meson-python.args]
library_dirs = %{_libdir} setup = ['-Duse-pythran=false']
openblas_libs = openblasp
EOF EOF
unzip %{SOURCE1}
unzip %{SOURCE2}
unzip %{SOURCE3}
unzip %{SOURCE4}
unzip %{SOURCE5}
mv array-api-compat-affd3a56927d3d1c178023121f43c9fa624eced0/* scipy/_lib/array_api_compat/
mv math-6bfe5818acdf86432f3e1a78ec5e1d3cdb8c6480/* scipy/_lib/boost_math/
mv HiGHS-4a122958a82e67e725d08153e099efe4dad099a2/* scipy/_lib/highs/
mv unuran-1d315c690787b14781a12e0beca6d25cc75562d6/* scipy/_lib/unuran/
mv PROPACK-96f6800451372dd003e627bbfd732937ac0c685e/* scipy/sparse/linalg/_propack/PROPACK/
rm -rf array-api-compat-affd3a56927d3d1c178023121f43c9fa624eced0
rm -rf math-6bfe5818acdf86432f3e1a78ec5e1d3cdb8c6480
rm -rf HiGHS-4a122958a82e67e725d08153e099efe4dad099a2
rm -rf unuran-1d315c690787b14781a12e0beca6d25cc75562d6
rm -rf PROPACK-96f6800451372dd003e627bbfd732937ac0c685e
rm -rf %{py3dir} rm -rf %{py3dir}
cp -a . %{py3dir} cp -a . %{py3dir}
%build %build
export CFLAGS="$RPM_OPT_FLAGS -lm" export CFLAGS="$RPM_OPT_FLAGS -lm"
export SCIPY_USE_PYTHRAN=0 export PKG_CONFIG_PATH=/use/lib64/pkgconfig
export LDFLAGS="$RPM_LD_FLAGS -Wall -shared"
pushd %{py3dir} pushd %{py3dir}
%global _hardening_clang_cflags %{nil}
env FFLAGS="$RPM_OPT_FLAGS -fPIC -w -fallow-argument-mismatch -O2"\ env FFLAGS="$RPM_OPT_FLAGS -fPIC -w -fallow-argument-mismatch -O2"\
OPENBLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \ %pyproject_build
%py3_build
popd popd
%install %install
export CFLAGS="$RPM_OPT_FLAGS -lm" export CFLAGS="$RPM_OPT_FLAGS -lm"
export LDFLAGS="$RPM_LD_FLAGS -Wall -shared"
pushd %{py3dir} pushd %{py3dir}
env FFLAGS="$RPM_OPT_FLAGS -fPIC" \ env FFLAGS="$RPM_OPT_FLAGS -fPIC" \
OPENBLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \ %pyproject_install scipy
%py3_install
popd popd
find %{buildroot} -type f -name '*.so' -exec strip '{}' ';' find %{buildroot} -type f -name '*.so' -exec strip '{}' ';'
@ -93,15 +108,25 @@ echo "%{_libdir}/%{name}" >> $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.c
%files -n python3-scipy %files -n python3-scipy
%license LICENSE.txt %license LICENSE.txt
%{python3_sitelib}/*.egg-info %{python3_sitearch}/scipy
%{python3_sitearch}/*.dist-info
%config(noreplace) /etc/ld.so.conf.d/* %config(noreplace) /etc/ld.so.conf.d/*
%changelog %changelog
* Tue Jul 12 2022 renliang16 <renliang@uniontech.com> - 1.8.0-1 * Thu Feb 22 2024 Liu Chao <liuchao173@huawei.com> - 1.12.0-1
- Upgrade package scipy to version 1.8.0 - Upgrade to 1.12.0
* Thu Feb 1 2024 Liu Chao <liuchao173@huawei.com> - 1.10.1-3
- Fix scipy compile error in cython3
* Mon Sep 11 2023 liyunfei <liyunfei@huawei.com> - 1.10.1-2
- add clang compile support
* Mon Jul 10 2023 wangkai <13474090681@163.com> - 1.10.1-1
- Update to 1.10.1
* Mon Dec 13 2021 zhouwenpei <zhouwenpei1@huawei.com> - 1.6.2-1 * Mon Dec 13 2021 zhouwenpei <zhouwenpei1@huawei.com> - 1.6.2-1
- upgrade to 1.6.2 - upgrade to 1.6.2
* Thu Sep 16 2021 chenchen <chen_aka_jan@163.com> - 1.2.2-8 * Thu Sep 16 2021 chenchen <chen_aka_jan@163.com> - 1.2.2-8
- del rpath for some binaries and bin - del rpath for some binaries and bin

BIN
unuran.zip Normal file

Binary file not shown.