2010-10-25 16:31:41 Petteri Räty napisał(a): > On 10/25/2010 02:54 PM, Arfrever Frehtes Taifersar Arahesis (arfrever) > wrote: > > arfrever 10/10/25 11:54:19 > > > > Modified: python.eclass > > Log: > > Set IUSE in EAPI >=4. > > Rename _parse_PYTHON_DEPEND() to _python_parse_PYTHON_DEPEND() and unset > > it after its using. > > Ban NEED_PYTHON variable. > > Add python_abi_depend(). > > Fix exporting of python_pkg_setup() in EAPI >=4. > > > > Please revert these until council has approved EAPI 4 for main tree > usage or risk the consequences. There is no guarantee that IUSE will be > in EAPI 4 although it's likely. If you want such pre-emptive actions in > the main tree you should seek our approval first.
python.eclass doesn't support EAPI="4" due to: if ! has "${EAPI:-0}" 0 1 2 3; then die "API of python.eclass in EAPI=\"${EAPI}\" not established" fi The attached patch could be applied if EAPI="4" doesn't contain support for "." in IUSE. Should I apply this patch now? -- Arfrever Frehtes Taifersar Arahesis
--- python.eclass +++ python.eclass @@ -44,9 +44,9 @@ IUSE="${_PYTHON_ABIS_USE_FLAGS}" } -if ! has "${EAPI:-0}" 0 1 2 3 && [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then - _python_set_IUSE -fi +#if ! has "${EAPI:-0}" 0 1 2 3 && [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then +# _python_set_IUSE +#fi unset -f _python_set_IUSE # @ECLASS-VARIABLE: PYTHON_DEPEND @@ -249,9 +249,9 @@ python_abi_depend() { local atom atom_index atoms=() exclude_ABIs="0" excluded_ABI excluded_ABIs include_ABIs="0" included_ABI included_ABIs support_ABI USE_dependencies USE_flag USE_flag_index USE_flags=() - if has "${EAPI:-0}" 0 1 2 3; then +# if has "${EAPI:-0}" 0 1 2 3; then die "${FUNCNAME}() cannot be used in this EAPI" - fi +# fi if [[ -z "${SUPPORT_PYTHON_ABIS}" ]]; then die "${FUNCNAME}() cannot be used in ebuilds of packages not supporting installation for multiple Python ABIs"
signature.asc
Description: This is a digitally signed message part.