(2to3 BR draft) |
(Add category) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== BuildRequires for 2to3 == | |||
If your specfile manually invokes /usr/bin/2to3, add an explicit build-time requirement on the <code>/usr/bin/2to3</code> | If your specfile manually invokes /usr/bin/2to3, add an explicit build-time requirement on the <code>/usr/bin/2to3</code> | ||
This is currently provided by the python-tools package, but might in the future be provided by the python3-tools package. | This is currently provided by the python-tools package, but might in the future be provided by the python3-tools package. | ||
Line 12: | Line 12: | ||
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). | 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? | |||
[[Category:Packaging guidelines drafts]] |
Latest revision as of 18:30, 11 February 2010
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?