- If this package could support installation for multiple versions of Python, then please try to adjust the ebuilds to support it. - Ensure that the ebuilds do not use deprecated functions or variables. - Please check if Python 3 is supported by this package. - If this package does not support Python 3: - Specify dependency on Python 2. You can use PYTHON_DEPEND helper variable, which should be set before inheriting of python eclass. - If this package cannot support installation for multiple versions of Python, then set active version of Python using python_set_active_version(). - Ensure that shebangs in installed scripts specify correct version of Python. If shebangs are too generic (e.g. '#!/usr/bin/python'), then you can use python_convert_shebangs() to convert shebangs. (Wrapper scripts generated by python_generate_wrapper_scripts() do not require any changes.) Please see documentation [1] for more details. [1] http://www.gentoo.org/proj/en/Python/developersguide.xml
Created attachment 292221 [details, diff] ebuild patch python 2.6.6-r2, 2.7.2-r3, 3.1, 3.2 All tested and correct. bumped to EAPI 3.
(In reply to comment #1) Use PYTHON_DEPEND="2". Remove dev-lang/python from DEPEND set in ebuilds. Such pkg_setup() is not needed.
Created attachment 293093 [details, diff] r
(In reply to comment #3) Read second suggestion from comment #2.
Created attachment 293339 [details, diff] revised ebuild patch
(In reply to comment #5) python_convert_shebangs() is probably still needed.
Created attachment 293709 [details, diff] revised ebuild patch
(In reply to comment #7) ${ED} should be quoted.
Created attachment 293827 [details, diff] revised ebuild patch
This approach was changed by the -r1 python eclasses