summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xtools/bootstrap_upip.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/bootstrap_upip.sh b/tools/bootstrap_upip.sh
new file mode 100755
index 0000000000..35446b9f2d
--- /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"