BuildRequires for 2to3
If your specfile manually invokes /usr/bin/2to3, add an explicit build-time requirement on the /usr/bin/2to3
This is currently provided by the python-tools package, but might in the future be provided by the python3-tools package.
Remember to add it within the 0%{with_python3} conditional:
%if 0%{?with_python3} BuildRequires: /usr/bin/2to3 BuildRequires: python3-setuptools, python3-devel %endif # with_python3
You don't need to do this if you're using lib2to3 (e.g. implicitly using python-setuptools, a.k.a Distribute: we ship lib2to3 within the core python and python3 subpackages. Note however that in some cases the setup.py may need 2to3 to be run on it before it is valid Python 3 code).
Questions
- Where to add this on the Python Guidelines page?