diff options
author | Michał Górny <mgorny@gentoo.org> | 2012-10-31 14:28:02 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2012-10-31 14:28:02 +0000 |
commit | f8c8d34b3ce464b0b574ae488e179c76288a256c (patch) | |
tree | 413b46b53d7820d9d7d1ac574428d7a34b186ecd /eclass/distutils-r1.eclass | |
parent | x86 stable, see bug 438750 (diff) | |
download | historical-f8c8d34b3ce464b0b574ae488e179c76288a256c.tar.gz historical-f8c8d34b3ce464b0b574ae488e179c76288a256c.tar.bz2 historical-f8c8d34b3ce464b0b574ae488e179c76288a256c.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/distutils-r1.eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 5 |
1 files changed, 3 insertions, 2 deletions
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}" "${@}" |