| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.130 2011/08/19 12:16:56 lxnay Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.131 2011/08/22 04:46:32 vapier Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: python.eclass |
5 | # @ECLASS: python.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Gentoo Python Project <python@gentoo.org> |
7 | # Gentoo Python Project <python@gentoo.org> |
| 8 | # @BLURB: Eclass for Python packages |
8 | # @BLURB: Eclass for Python packages |
| … | |
… | |
| 1668 | # python-updater checks PYTHON_REQUESTED_ACTIVE_VERSION variable. |
1668 | # python-updater checks PYTHON_REQUESTED_ACTIVE_VERSION variable. |
| 1669 | PYTHON_REQUESTED_ACTIVE_VERSION="$1" |
1669 | PYTHON_REQUESTED_ACTIVE_VERSION="$1" |
| 1670 | } |
1670 | } |
| 1671 | |
1671 | |
| 1672 | # @FUNCTION: python_need_rebuild |
1672 | # @FUNCTION: python_need_rebuild |
|
|
1673 | # @DESCRIPTION: |
| 1673 | # @DESCRIPTION: Mark current package for rebuilding by python-updater after |
1674 | # Mark current package for rebuilding by python-updater after |
| 1674 | # switching of active version of Python. |
1675 | # switching of active version of Python. |
| 1675 | python_need_rebuild() { |
1676 | python_need_rebuild() { |
| 1676 | if _python_package_supporting_installation_for_multiple_python_abis; then |
1677 | if _python_package_supporting_installation_for_multiple_python_abis; then |
| 1677 | die "${FUNCNAME}() cannot be used in ebuilds of packages supporting installation for multiple Python ABIs" |
1678 | die "${FUNCNAME}() cannot be used in ebuilds of packages supporting installation for multiple Python ABIs" |
| 1678 | fi |
1679 | fi |