From bc46e49ff67cf1e5157ab95b41e780067f433685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 12 Nov 2015 15:44:34 +0100 Subject: dev-lang/python: Fix epython.py module first install Fix the issues in obtaining sitedir for epython.py module install when dev-lang/python is not yet installed. --- dev-lang/python/python-3.4.1.ebuild | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'dev-lang/python/python-3.4.1.ebuild') diff --git a/dev-lang/python/python-3.4.1.ebuild b/dev-lang/python/python-3.4.1.ebuild index 5c5df4c798b4..2f271ee72a0e 100644 --- a/dev-lang/python/python-3.4.1.ebuild +++ b/dev-lang/python/python-3.4.1.ebuild @@ -276,15 +276,18 @@ src_install() { -i "${ED}etc/conf.d/pydoc-${SLOT}" "${ED}etc/init.d/pydoc-${SLOT}" || die "sed failed" # for python-exec - python_export python${SLOT} EPYTHON PYTHON PYTHON_SITEDIR + local vars=( EPYTHON PYTHON_SITEDIR ) # if not using a cross-compiler, use the fresh binary if ! tc-is-cross-compiler; then - local PYTHON=./python + local -x PYTHON=./python local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}. + else + vars=( PYTHON "${vars[@]}" ) fi - echo "EPYTHON='${EPYTHON}'" > epython.py + python_export "python${PYVER}" "${vars[@]}" + echo "EPYTHON='${EPYTHON}'" > epython.py || die python_domodule epython.py } -- cgit v1.2.3