diff options
author | Ali Polatel <hawking@gentoo.org> | 2008-10-27 00:17:28 +0000 |
---|---|---|
committer | Ali Polatel <hawking@gentoo.org> | 2008-10-27 00:17:28 +0000 |
commit | 8e65234fc36b6ec3e563b9d9edc381c271008258 (patch) | |
tree | 4e783f217a4cfbd1ad8090091ade7ebcbcd14f24 /eclass | |
parent | Stable for HPPA (bug #244511). (diff) | |
download | gentoo-2-8e65234fc36b6ec3e563b9d9edc381c271008258.tar.gz gentoo-2-8e65234fc36b6ec3e563b9d9edc381c271008258.tar.bz2 gentoo-2-8e65234fc36b6ec3e563b9d9edc381c271008258.zip |
Add python_need_rebuild marker function. The first step for a faster python-updater :)
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/python.eclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass index 8a3ab7e1d953..409c3548fab4 100644 --- a/eclass/python.eclass +++ b/eclass/python.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.51 2008/10/26 21:54:32 hawking Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.52 2008/10/27 00:17:28 hawking Exp $ # @ECLASS: python.eclass # @MAINTAINER: @@ -91,6 +91,14 @@ python_enable_pyc() { python_disable_pyc +# @FUNCTION: python_need_rebuild +# @DESCRIPTION: Run without arguments, specifies that the package should be +# rebuilt after a python upgrade. +python_need_rebuild() { + python_version + export PYTHON_NEED_REBUILD=${PYVER} +} + # @FUNCTION: python_get_libdir # @DESCRIPTION: # Run without arguments, returns the python library dir |