diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-05-07 15:57:27 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-05-07 16:00:40 +0300 |
commit | 76abb2e6235c1948692ddcabe1d6a7e319f9a38d (patch) | |
tree | 8d93693e18bde49b1031295252a7e7c88bc73365 | |
parent | 2bdefea9d6cbf917db327f67cc40f0ecbb3c0148 (diff) |
tools: Add script to install "upip" package manager.
upip is a simple and light-weight package manager for MicroPython modules,
offering subset of pip functionality. upip is part of micropython-lib
project: https://github.com/micropython/micropython-lib/tree/master/upip
This script bootstraps upip by downloading and unpacking it directly from
PyPI repository, with all other packages to be installed with upip itself.
-rwxr-xr-x | tools/bootstrap_upip.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/bootstrap_upip.sh b/tools/bootstrap_upip.sh new file mode 100755 index 000000000..35446b9f2 --- /dev/null +++ b/tools/bootstrap_upip.sh @@ -0,0 +1,19 @@ +# This script performs bootstrap installation of upip package manager from PyPI +# All the other packages can be installed using it. + +if [ -z "$TMPDIR" ]; then + cd /tmp +else + cd $TMPDIR +fi + +# Remove any stale old version +rm -rf micropython-upip-* +wget -nd -r -l1 https://pypi.python.org/pypi/micropython-upip/ --accept-regex ".*pypi.python.org/packages/source/.*.gz" --reject=html + +tar xfz micropython-upip-*.tar.gz +mkdir -p ~/.micropython/lib/ +cp micropython-upip-*/upip*.py ~/.micropython/lib/ + +echo "upip is installed. To use:" +echo "micropython -m upip --help" |