#!/bin/bash

RETCODE=$(fw_exists ${IROOT}/py3.installed)
[ ! "$RETCODE" == 0 ] || { return 0; }

fw_get http://www.python.org/ftp/python/3.4.2/Python-3.4.2.tar.xz
fw_untar Python-3.4.2.tar.xz
cd Python-3.4.2
./configure --prefix=${IROOT}/py3 --disable-shared --quiet
make -j4 --quiet
make install --quiet

${IROOT}/py3/bin/python3 -m ensurepip -U
${IROOT}/py3/bin/pip3 install -U setuptools pip

touch ${IROOT}/py3.installed

#!/bin/bash

RETCODE=$(fw_exists ${IROOT}/py3.installed)
[ ! "$RETCODE" == 0 ] || { return 0; }

fw_get http://www.python.org/ftp/python/3.4.2/Python-3.4.2.tar.xz
fw_untar Python-3.4.2.tar.xz
cd Python-3.4.2
./configure --prefix=${IROOT}/py3 --disable-shared --quiet
make -j4 --quiet
make install --quiet

ln -s ${IROOT}/py3/bin/python3.4m ${IROOT}/py3/bin/python3.4
${IROOT}/py3/bin/python3 -m ensurepip -U
${IROOT}/py3/bin/pip3 install -U setuptools pip

touch ${IROOT}/py3.installed

Add symlink to ensure pip3 can find a Python installation.
Add symlink to ensure pip3 can find a Python installation.

Python3 tests were failing locally because the python build was gettting
denied permission to create a hardlink between python3.4 and python3.4m in the
installs directory.  This was a problem because pip3 and other scripts look
for ${IROOT}/py3/bin/python3.4.
