diff options
Diffstat (limited to 'dev-lang/python/python-3.4.1.ebuild')
| -rw-r--r-- | dev-lang/python/python-3.4.1.ebuild | 9 |
1 files changed, 6 insertions, 3 deletions
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 } |
