Hi, I am having troubles build rpy in Fedora 33 and I am running out of ideas.
https://src.fedoraproject.org/rpms/rpy
An example of a failure is here: https://koji.fedoraproject.org/koji/taskinfo?taskID=48721928
The problem says:
error: attempt to use unversioned python, define %__python to /usr/bin/python2 or /usr/bin/python3 explicitly
But I have no idea where does this comes from. Does anyone have any idea of what is going wrong?
Regards,
On 05. 08. 20 12:49, José Abílio Matos wrote:
Hi, I am having troubles build rpy in Fedora 33 and I am running out of ideas.
https://src.fedoraproject.org/rpms/rpy
An example of a failure is here: https://koji.fedoraproject.org/koji/taskinfo?taskID=48721928
The problem says:
error: attempt to use unversioned python, define %__python to /usr/bin/python2 or /usr/bin/python3 explicitly
But I have no idea where does this comes from. Does anyone have any idea of what is going wrong?
Hey José Abílio o/
This is https://fedoraproject.org/wiki/Changes/PythonMacroError
And in the spec:
# export PYTHONPATH=%{buildroot}%{python_sitearch}
There are several things at play:
- %{python_sitearch} is derived from %__python - commenting macros like this is not preventing them form being evaluated
See also:
$ rpmlint rpy.spec rpy.spec:57: W: macro-in-comment %{srcname} rpy.spec:58: W: macro-in-comment %{buildroot} rpy.spec:58: W: macro-in-comment %{python_sitearch} 0 packages and 1 specfiles checked; 0 errors, 3 warnings.
On Wednesday, 5 August 2020 12.14.58 WEST Miro Hrončok wrote:
Hey José Abílio o/
Hi Miro, :-) thank you for pointing me in the right direction.
This is https://fedoraproject.org/wiki/Changes/PythonMacroError
And in the spec:
# export PYTHONPATH=%{buildroot}%{python_sitearch}
There are several things at play:
- %{python_sitearch} is derived from %__python
- commenting macros like this is not preventing them form being evaluated
I knew that but I forgot it \o/ since most of the time it is harmless. The change that I have applied was to convert to python3_sitearch since I still have hope that the tests will work again.
Best regards,
PS: I forgot to send the message... oops. :-)
python-devel@lists.fedoraproject.org