- If this package can be used as a library and installs Python modules (*.so or *.py) into site-packages directories, then consider supporting installation for multiple Python versions. Please read section "Types of packages" in documentation [1] to decide if this package can support installation for multiple Python versions. - Ensure that the ebuilds do not use deprecated functions or variables. - Please check if Python 3 is supported by this package. You can temporarily set Python 3 as main active version of Python to properly test if this package supports Python 3. - 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. Please read section "Specification of dependency on Python" in documentation [1]. - 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 read section "Shebangs in installed scripts" in documentation [1]. - To ensure that changes applied to the ebuilds are sufficient, please temporarily set Python 3 as main active version of Python and test if this package can be properly installed and if it works at run time. Please see documentation [1] for more details. [1] http://www.gentoo.org/proj/en/Python/developersguide.xml
Arfrever, notice also bug 223067... Patches are accepted, but otherwise this is a very low priority to the graphics team, sorry.
Created attachment 292655 [details] ebuild patch supports most all python versions.
(In reply to comment #2) This package doesn't support Python 3.
Created attachment 292839 [details, diff] revised ebuild patch
(In reply to comment #4) Delete '|| ( dev-lang/python[xml] dev-python/pyxml )' from COMMON_DEPEND. Call 'python_set_active_version 2' before 'python_pkg_setup'.
python_mod_optimize() and python_mod_cleanup() should be called. See bug #223067.
Created attachment 292993 [details, diff] revised ebuild patch thx Arfrever
(In reply to comment #7) Use PYTHON_DEPEND="2". src_postint() and src_postrm() functions are not used by package managers. You should define pkg_postinst() and pkg_postrm(). python_mod_optimize() and python_mod_cleanup() require at least 1 argument.
Created attachment 293307 [details, diff] revised ebuild patch
hmm, a correction again. pkg_postrm() { python_mod_cleanup "${ED}" } remove arg "-r"
(In reply to comment #9 and comment #10) PYTHON_DEPEND="2" python_mod_optimize() and python_mod_cleanup() require paths to Python modules, relative to "${EROOT%/}" or site-packages directories.
Created attachment 293665 [details, diff] revised ebuild patch
(In reply to comment #12) Re-read comment #11.
Created attachment 293809 [details, diff] revised ebuild patch sorry, missed it
(In reply to comment #14) The second suggestion from comment #11 means: pkg_postint() { python_mod_optimize /usr/share/${PN}-extensions } pkg_postrm() { python_mod_cleanup /usr/share/${PN}-extensions }
Created attachment 294015 [details, diff] revised ebuild patch got caught out by my own typo, - in place of /. anyway this works
Python related stuff should be fine in 0.48.4-r1 now.