Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-scipy for openSUSE:Factory 
checked in at 2022-08-04 13:23:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-scipy (Old)
 and      /work/SRC/openSUSE:Factory/.python-scipy.new.1521 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-scipy"

Thu Aug  4 13:23:12 2022 rev:53 rq:990111 version:1.8.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-scipy/python-scipy.changes        
2022-05-24 20:31:12.826911207 +0200
+++ /work/SRC/openSUSE:Factory/.python-scipy.new.1521/python-scipy.changes      
2022-08-04 13:23:25.416491876 +0200
@@ -1,0 +2,5 @@
+Mon Jul 18 15:23:43 UTC 2022 - Ben Greiner <[email protected]>
+
+- Keep lowercase egg-info despite setuptools 60+
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-scipy.spec ++++++
--- /var/tmp/diff_new_pack.z0WOwR/_old  2022-08-04 13:23:26.216494145 +0200
+++ /var/tmp/diff_new_pack.z0WOwR/_new  2022-08-04 13:23:26.220494156 +0200
@@ -61,14 +61,20 @@
 %bcond_with ringdisabled
 %if %{without hpc}
 %define package_name %{pname}
+# for file section
 %define p_python_sitearch %{python_sitearch}
+# for inside python_expand
+%define p_python_sitearch_expand %{$python_sitearch}
 %define p_prefix %{_prefix}
 %define p_bindir %{_bindir}
 %else
 %{!?compiler_family:%global compiler_family gnu}
 %{hpc_init -c %{compiler_family} %{?c_f_ver:-v %{c_f_ver}} %{?ext:-e %{ext}}}
 %define package_name %{hpc_package_name %{_ver}}
+# for file section
 %define p_python_sitearch %{hpc_python_sitearch}
+# for inside python_expand
+%define p_python_sitearch_expand $($python -c "import sysconfig as s; 
print(s.get_paths(vars={'platbase':'%{hpc_prefix}','base':'%{hpc_prefix}'}).get('platlib'))")
 %define p_prefix %{hpc_prefix}
 %define p_bindir %{hpc_bindir}
 # Magic for OBS Staging. Only build the flavors required by
@@ -181,16 +187,21 @@
 %hpc_setup
 module load $python-numpy
 %endif
+# Note: SciPy 1.9 will switch to Meson and support for numpy.distutils will be 
removed in 1.10
 $python setup.py install --prefix=%{p_prefix} --root=%{buildroot}
-%fdupes %{buildroot}%{$python_sitearch}
+# Setuptools 60+ unexpectedly writes the egg-info in CamelCase,
+# upstream published dist-info is lowercase; keep lowercase until above 
mentioned switch happens.
+if [ -d 
%{buildroot}%{p_python_sitearch_expand}/SciPy-%{version}-py%{$python_bin_suffix}.egg-info
 ]; then
+  mv 
%{buildroot}%{p_python_sitearch_expand}/SciPy-%{version}-py%{$python_bin_suffix}.egg-info
 \
+     
%{buildroot}%{p_python_sitearch_expand}/scipy-%{version}-py%{$python_bin_suffix}.egg-info
+fi
+%fdupes %{buildroot}%{p_python_sitearch_expand}
 }
 
 %if %{with hpc}
 %define hpc_module_pname ${python_flavor}-%{shortname}
 %{python_expand #
-python_flavor=$(cat _current_flavor)
-sitesearch_path=`$python -c "import sysconfig as s; 
print(s.get_paths(vars={'platbase':'%{hpc_prefix}','base':'%{hpc_prefix}'}).get('platlib'))"`
-rm -rf 
%{buildroot}${sitesearch_path}/scipy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests
+rm -rf 
%{buildroot}%{p_python_sitearch_expand}/scipy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests
 %hpc_write_modules_files
 
#%%Module1.0#####################################################################
 
@@ -261,7 +272,7 @@
 %files %{python_files}
 %license LICENSE.txt
 %{p_python_sitearch}/scipy/
-%{p_python_sitearch}/scipy-*-py*.egg-info
+%{p_python_sitearch}/scipy-%{version}*-info
 
 %if %{with hpc}
 %define hpc_module_pname %{python_flavor}-scipy

Reply via email to