macros.python310: fixed %python310_version and removed use of deprecated distutils [release 3.10.2-2mamba;Thu Jan 27 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 16:58:41 +01:00
parent 43ea27dd31
commit 66c486fd19
2 changed files with 8 additions and 5 deletions

View File

@ -11,10 +11,10 @@
# Useful macros for building *.rpm python packages (for python > 1.6).
#
%python310_sitearch %(%{__python310} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(True));")
%python310_sitelib %(%{__python310} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
%python310_inc %(%{__python310} -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")
%python310_version %(%{__python310} -c "import sys; print(sys.version[0:3])")
%python310_sitearch %(%{__python310} -c "from sysconfig import get_paths; print(get_paths()['platlib'])")
%python310_sitelib %(%{__python310} -c "from sysconfig import get_paths; print(get_paths()['purelib'])")
%python310_inc %(%{__python310} -c "from sysconfig import get_paths; print(get_paths()['include'])")
%python310_version %(%{__python310} -c "import sys; print(sys.version[0:4])")
%py310_compile(O) \
find %1 -name '*.pyc' -name '*.pyo' -exec rm -f {} \\; \

View File

@ -4,7 +4,7 @@
%define __libdir %{_libdir}
Name: python310
Version: 3.10.2
Release: 1mamba
Release: 2mamba
Summary: An interpreted, interactive, object-oriented programming language
Group: Applications/Development
Vendor: openmamba
@ -282,6 +282,9 @@ find %{__libdir}/python%{majversion}/site-packages -name *.egg-info -type d -emp
%endif
%changelog
* Thu Jan 27 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.10.2-2mamba
- macros.python310: fixed %python310_version and removed use of deprecated distutils
* Sat Jan 15 2022 Automatic Build System <autodist@mambasoft.it> 3.10.2-1mamba
- automatic version update by autodist