diff options
author | 2012-10-31 14:28:02 +0000 | |
---|---|---|
committer | 2012-10-31 14:28:02 +0000 | |
commit | abc1dd65f510f45e113c0101ca8fa36f0c70312c (patch) | |
tree | 896e3bd2c04cea3f8d5115921fa4ce1eafa9e3a9 /eclass | |
parent | x86 stable, see bug 438750 (diff) | |
download | gentoo-2-abc1dd65f510f45e113c0101ca8fa36f0c70312c.tar.gz gentoo-2-abc1dd65f510f45e113c0101ca8fa36f0c70312c.tar.bz2 gentoo-2-abc1dd65f510f45e113c0101ca8fa36f0c70312c.zip |
Enable byte-compilation of Python modules only locally for distutils-r1_python_install(). Thanks to Enlik for reminding me of it.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 6 | ||||
-rw-r--r-- | eclass/distutils-r1.eclass | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index b6715d4e0670..99f08ef3e81d 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for eclass directory # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.490 2012/10/31 14:18:41 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.491 2012/10/31 14:28:02 mgorny Exp $ + + 31 Oct 2012; Michał Górny <mgorny@gentoo.org> distutils-r1.eclass: + Enable byte-compilation of Python modules only locally for + distutils-r1_python_install(). Thanks to Enlik for reminding me of it. 31 Oct 2012; Michał Górny <mgorny@gentoo.org> python-r1.eclass: Fix the shebang correcting function to patch shebang only. Thanks to Enlik diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 172cc70f39da..2944e7649aee 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.14 2012/10/29 13:34:02 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.15 2012/10/31 14:28:02 mgorny Exp $ # @ECLASS: distutils-r1 # @MAINTAINER: @@ -275,7 +275,8 @@ distutils-r1_python_install() { esac debug-print "${FUNCNAME}: [${EPYTHON}] flags: ${flags}" - unset PYTHONDONTWRITEBYTECODE + # enable compilation for the install phase. + local PYTHONDONTWRITEBYTECODE= esetup.py install "${flags[@]}" --root="${D}" "${@}" |