The unversioned Python RPM macros
Go to file
Miro Hrončok c7a9537dba Set %__python3 value according to %python3_pkgversion
I.e. when %python3_pkgversion is 3.12, %__python3 is /usr/bin/python3.12

We assume that when packagers package for Python 3.X, they want to change both
%python3_pkgversion and %__python3 value.

Hence instead of copy-pasting this:

    %global python3_pkgversion 3.X
    %global __python3 /usr/bin/python3.X

They just need to do:

    %global python3_pkgversion 3.X

Packagers who want to change the value of %__python3 without touching
%python3_pkgversion can still do it:

    %global __python3 /usr/bin/pypy3

Related: rhbz#1950291
2021-12-14 21:35:59 +01:00
tests Set %__python3 value according to %python3_pkgversion 2021-12-14 21:35:59 +01:00
.gitignore New branch setup 2020-10-08 23:33:09 +00:00
compileall2.py RHEL 9.0.0 Alpha bootstrap 2020-10-14 20:10:31 -07:00
gating.yaml Add gating.yaml from RHEL 2021-06-02 12:42:49 +02:00
import_all_modules.py %py(3)_check_import: Process .pth files in site(arch|lib) 2021-12-14 21:32:50 +01:00
macros.pybytecompile Escape % symbols in macro files comments 2021-05-05 17:18:32 +02:00
macros.python %py(3)_check_import: Process .pth files in site(arch|lib) 2021-12-14 21:32:50 +01:00
macros.python3 %py(3)_check_import: Process .pth files in site(arch|lib) 2021-12-14 21:32:50 +01:00
macros.python-srpm Set %__python3 value according to %python3_pkgversion 2021-12-14 21:35:59 +01:00
python-rpm-macros.spec Set %__python3 value according to %python3_pkgversion 2021-12-14 21:35:59 +01:00
python.lua Update comment for python_altnames() to reflect the reality 2021-04-22 18:25:28 +02:00
sources RHEL 9.0.0 Alpha bootstrap 2020-10-14 20:10:31 -07:00