cp -Rv "$SOURCE_DIRECTORY/anywhere/$INSTALL_ROOT/usr" "$INSTALL_ROOT/" &&

# gettext
install -vm 755 "$SOURCE_DIRECTORY/Tools/i18n/"{pygettext.py,msgfmt.py} \
                "$INSTALL_ROOT/usr/bin"

local PYVER=`echo ${VERSION}|cut -d . -f 1,2`

if [ -d "${INSTALL_ROOT}/usr/lib/python${PYVER}/plat-linux2" ];then
   cp -r "${INSTALL_ROOT}/usr/lib/python${PYVER}/plat-linux2" \
   "${INSTALL_ROOT}/usr/lib/python${PYVER}/plat-linux3"
else
   cp -r "${INSTALL_ROOT}/usr/lib/python${PYVER}/plat-linux3" \
   "${INSTALL_ROOT}/usr/lib/python${PYVER}/plat-linux2"
fi &&
# help some stupid installer scripts
local PV=`echo ${VERSION}|cut -c-3` &&
ln -sf ${TRACK_ROOT}/usr/include/python${PV}m ${INSTALL_ROOT}/usr/include/python${PV} &&
# this is the primary/only version of python
if [[ $PY3K == y ]]; then
 ln -sf ${TRACK_ROOT}/usr/bin/python3 ${INSTALL_ROOT}/usr/bin/python &&
 ln -sf ${TRACK_ROOT}/usr/bin/python3-config ${INSTALL_ROOT}/usr/bin/python-config &&
 ln -sf ${TRACK_ROOT}/usr/lib/pkgconfig/python-${PV}.pc ${INSTALL_ROOT}/usr/lib/pkgconfig/python.pc
fi
