Skip to content

Commit

Permalink
dev-lang/python: Add compat symlink for pythonX.Y-config
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.26_p25
  • Loading branch information
floppym committed Dec 10, 2015
1 parent 3f8fd3b commit 8512ed0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ src_install() {
"${D}${PYTHON_SCRIPTDIR}/pydoc" || die
ln -s "../../../bin/pyvenv-${PYVER}" \
"${D}${PYTHON_SCRIPTDIR}/pyvenv" || die

# Compatibility link for stuff that calls ${PYTHON}-config
# Remove this when all revdeps have been fixed to not do that.
dosym "${abiver}-config" "/usr/bin/python${PYVER}-config"
}

pkg_preinst() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ src_install() {
"${D}${PYTHON_SCRIPTDIR}/pydoc" || die
ln -s "../../../bin/pyvenv-${PYVER}" \
"${D}${PYTHON_SCRIPTDIR}/pyvenv" || die

# Compatibility link for stuff that calls ${PYTHON}-config
# Remove this when all revdeps have been fixed to not do that.
dosym "${abiver}-config" "/usr/bin/python${PYVER}-config"
}

pkg_preinst() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ src_install() {
"${D}${PYTHON_SCRIPTDIR}/pydoc" || die
ln -s "../../../bin/pyvenv-${PYVER}" \
"${D}${PYTHON_SCRIPTDIR}/pyvenv" || die

# Compatibility link for stuff that calls ${PYTHON}-config
# Remove this when all revdeps have been fixed to not do that.
dosym "${abiver}-config" "/usr/bin/python${PYVER}-config"
}

pkg_preinst() {
Expand Down

0 comments on commit 8512ed0

Please sign in to comment.