diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-11-06 00:35:30 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-11-06 00:35:30 +0000 |
commit | ab5af1003cb7d5a5960825f21e77447e588de1ec (patch) | |
tree | b9fc7f89b035fd3239279eefcaf5f04de3e9e3aa /eclass | |
parent | Version bump. (diff) | |
download | historical-ab5af1003cb7d5a5960825f21e77447e588de1ec.tar.gz historical-ab5af1003cb7d5a5960825f21e77447e588de1ec.tar.bz2 historical-ab5af1003cb7d5a5960825f21e77447e588de1ec.zip |
Handle distribute_setup module in distutils_src_prepare().
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/distutils.eclass | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/eclass/distutils.eclass b/eclass/distutils.eclass index 6a13e00e07f0..b8e5b78b051a 100644 --- a/eclass/distutils.eclass +++ b/eclass/distutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.65 2009/10/11 13:38:12 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.66 2009/11/06 00:35:30 arfrever Exp $ # @ECLASS: distutils.eclass # @MAINTAINER: @@ -65,14 +65,23 @@ distutils_src_prepare() { fi # Delete ez_setup files to prevent packages from installing - # setuptools on their own. - local ez_setup_existence + # Setuptools on their own. + local ez_setup_existence="0" [[ -d ez_setup || -f ez_setup.py ]] && ez_setup_existence="1" rm -fr ez_setup* if [[ "${ez_setup_existence}" == "1" ]]; then echo "def use_setuptools(*args, **kwargs): pass" > ez_setup.py fi + # Delete distribute_setup files to prevent packages from installing + # Distribute on their own. + local distribute_setup_existence="0" + [[ -d distribute_setup || -f distribute_setup.py ]] && distribute_setup_existence="1" + rm -fr distribute_setup* + if [[ "${distribute_setup_existence}" == "1" ]]; then + echo "def use_setuptools(*args, **kwargs): pass" > distribute_setup.py + fi + if [[ -n "${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES}" ]]; then python_copy_sources fi |