blob: 667d0845a4687ede7e5d6b2d2d8224792e6ce7a4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# This script performs bootstrap installation of upip package manager from PyPI
# All the other packages can be installed using it.
saved="$PWD"
if [ "$1" = "" ]; then
dest=~/.micropython/lib/
else
dest="$1"
fi
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
tmpd="$PWD"
cd "$saved"
mkdir -p "$dest"
cp "$tmpd"/micropython-upip-*/upip*.py "$dest"
echo "upip is installed. To use:"
echo "micropython -m upip --help"
|