dev-lang/python: Set PYTHON_SITEDIR manually

The eclass change in fd4001e9 causes python_export to call ${PYTHON}
to obtain PYTHON_SITEDIR. This returns an empty string if ${PYTHON}
has not yet been merged.

Package-Manager: portage-2.2.23_p26
This commit is contained in:
Mike Gilbert
2015-11-11 19:45:27 -05:00
parent fa5cc11fee
commit 1e379f1f1a
12 changed files with 23 additions and 11 deletions
+2 -1
View File
@@ -277,7 +277,8 @@ src_install() {
-i "${ED}etc/conf.d/pydoc-${PYVER}" "${ED}etc/init.d/pydoc-${PYVER}" || die "sed failed"
# for python-exec
python_export python${PYVER} EPYTHON PYTHON PYTHON_SITEDIR
python_export python${PYVER} EPYTHON PYTHON
export PYTHON_SITEDIR="${EPREFIX}/usr/$(get_libdir)/python${PYVER}/site-packages"
# if not using a cross-compiler, use the fresh binary
if ! tc-is-cross-compiler; then