Skip to content
Snippets Groups Projects
Commit 76abb2e6 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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.
parent 2bdefea9
No related branches found
No related tags found
No related merge requests found
# 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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment