Use sysconfig.get_path() to define %python_sitelib and %python_sitearch
Distutils which were used to define the macros are deprecated in Python3.10: https://www.python.org/dev/peps/pep-0632/. Sysconfig isn't and it works across our Pythons, making it better choice for the task.
This commit is contained in:
parent
bd4c3de20c
commit
9d2fcef337
5 changed files with 46 additions and 7 deletions
|
|
@ -22,7 +22,7 @@ License: MIT and Python
|
|||
# The macro is defined in python-srpm-macros.
|
||||
%{?load:%{SOURCE102}}
|
||||
Version: %{__default_python3_version}
|
||||
Release: 36%{?dist}
|
||||
Release: 37%{?dist}
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
|
@ -95,6 +95,10 @@ install -m 644 compileall2.py %{buildroot}%{_rpmconfigdir}/redhat/
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed Apr 07 2021 Karolina Surma <ksurma@redhat.com> - 3.9-37
|
||||
- Use sysconfig.get_path() to get %%python3_sitelib and %%python3_sitearch
|
||||
- Fixes: rhbz#1946972
|
||||
|
||||
* Mon Mar 29 2021 Miro Hrončok <mhroncok@redhat.com> - 3.9-36
|
||||
- Allow commas as argument separator for extras names in %%python_extras_subpkg
|
||||
- Fixes: rhbz#1936486
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue