Skip to content

Commit 76abb2e

Browse files
committed
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.
1 parent 2bdefea commit 76abb2e

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

tools/bootstrap_upip.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This script performs bootstrap installation of upip package manager from PyPI
2+
# All the other packages can be installed using it.
3+
4+
if [ -z "$TMPDIR" ]; then
5+
cd /tmp
6+
else
7+
cd $TMPDIR
8+
fi
9+
10+
# Remove any stale old version
11+
rm -rf micropython-upip-*
12+
wget -nd -r -l1 https://pypi.python.org/pypi/micropython-upip/ --accept-regex ".*pypi.python.org/packages/source/.*.gz" --reject=html
13+
14+
tar xfz micropython-upip-*.tar.gz
15+
mkdir -p ~/.micropython/lib/
16+
cp micropython-upip-*/upip*.py ~/.micropython/lib/
17+
18+
echo "upip is installed. To use:"
19+
echo "micropython -m upip --help"

0 commit comments

Comments
 (0)