Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
f5ae384d
Commit
f5ae384d
authored
May 29, 2015
by
Paul Sokolovsky
Browse files
bootstrap_upip.sh: Allow to install into a path given by argument.
parent
84d11b5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/bootstrap_upip.sh
View file @
f5ae384d
# 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
...
...
@@ -12,8 +20,11 @@ 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/
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"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment