> You can download python from http://www.python.org
> Unzip it, run ./configure with the parameters portage is using (you'll
> find this in file /usr/bin/ebuild.sh in function econf) and then run make. The
> parameters portags is using for make install can you find as well in file
> /usr/bin/einstall in function einstall.
> After that, your python should be complete thus you should be able to
> emerge normally.
what parameters should i use?
econf() {
if [ -z "${ECONF_SOURCE}" ]; then
ECONF_SOURCE="."
fi
if [ -x "${ECONF_SOURCE}/configure" ]; then
if hasq autoconfig $FEATURES && ! hasq autoconfig $RESTRICT;
then
if [ -e /usr/share/gnuconfig/ -a -x /bin/basename ];
then
local x
for x in $(find ${S} -type f -name config.guess
-o
-name config.sub) ; do
einfo "econf: updating $x with
/usr/share/gnuconfig/$(/bin/basename ${x})"
cp /usr/share/gnuconfig/$(/bin/basename
${x}) ${x}
done
fi
fi
if [ ! -z "${CBUILD}" ]; then
EXTRA_ECONF="--build=${CBUILD} ${EXTRA_ECONF}"
fi
if [ ! -z "${CTARGET}" ]; then
EXTRA_ECONF="--target=${CTARGET} ${EXTRA_ECONF}"
fi
# if the profile defines a location to install libs to aside
from
default, pass it on.
# if the ebuild passes in --libdir, they're responsible for the
conf_libdir fun.
if [ ! -z "${CONF_LIBDIR}" ] && [ "${*/--libdir}" == "$*" ];
then
if [ "${*/--prefix}" == "$*" ]; then
CONF_PREFIX="/usr"
else
local args="$(echo $*)"
local -a pref=($(echo ${args/*--prefix[= ]}))
CONF_PREFIX=${pref}
fi
export CONF_PREFIX
EXTRA_ECONF="--libdir=/${CONF_PREFIX}/${CONF_LIBDIR}
${EXTRA_ECONF}"
fi
echo "${ECONF_SOURCE}/configure" \
--prefix=/usr \
--host=${CHOST} \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--datadir=/usr/share \
--sysconfdir=/etc \
--localstatedir=/var/lib \
${EXTRA_ECONF} \
"$@"
"${ECONF_SOURCE}/configure" \
--prefix=/usr \
--host=${CHOST} \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--
[email protected] mailing list