python3.sh 508 B

1234567891011121314151617
  1. #!/bin/bash
  2. RETCODE=$(fw_exists ${IROOT}/py3.installed)
  3. [ ! "$RETCODE" == 0 ] || { return 0; }
  4. fw_get http://www.python.org/ftp/python/3.4.2/Python-3.4.2.tar.xz
  5. fw_untar Python-3.4.2.tar.xz
  6. cd Python-3.4.2
  7. ./configure --prefix=${IROOT}/py3 --disable-shared --with-computed-gotos --quiet
  8. make -j4 --quiet
  9. make install --quiet
  10. ln -s ${IROOT}/py3/bin/python3.4m ${IROOT}/py3/bin/python3.4
  11. ${IROOT}/py3/bin/python3 -m ensurepip -U
  12. ${IROOT}/py3/bin/pip3 install -U setuptools pip
  13. touch ${IROOT}/py3.installed