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.
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org