summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-08-27 02:53:06 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-08-27 02:53:06 +0300
commitf3c3010ffccc6cee0795c0491e2a686994bd0b34 (patch)
tree25094a19c66184878e6d9a7b6a73f2a7f39403fb
parentb427d6ae8686f4a9520509cb73ab9f1327ceadc1 (diff)
downloadmicropython-f3c3010ffccc6cee0795c0491e2a686994bd0b34.tar.gz
micropython-f3c3010ffccc6cee0795c0491e2a686994bd0b34.zip
pip-micropython: Revert to using PIP_MICROPY_DEST environment var.
-t/--target is a pip option. Trying to use pip options for different meanings in pip-micropython may lead to big confusion. That's why the original passed any extra parameters using environment variables. "All options belong to pip."
-rwxr-xr-xtools/pip-micropython17
1 files changed, 1 insertions, 16 deletions
diff --git a/tools/pip-micropython b/tools/pip-micropython
index ad55d7ef4b..0db699f0c0 100755
--- a/tools/pip-micropython
+++ b/tools/pip-micropython
@@ -5,34 +5,19 @@
# complete library snapshot to be deployed on a device for baremetal
# ports (if PIP_MICROPY_DEST environment var is set).
#
-# Currently supported usage:
-#
-# pip-micropython install [-t/--target <dir>] <packages>
-# parse command
if [ "$1" != "install" ]; then
echo "Only install command is supported currently"
exit 1
fi
shift
-# parse options
-targetdest=''
-if [ "$1" == "-t" -o "$1" == "--target" ]; then
- targetdest="$2"
- shift
- shift
-fi
-
if [ -z "$TMPDIR" ]; then
TMPDIR=/tmp
fi
TMPVENV="$TMPDIR/pip-micropy-venv"
-if [ -n "$targetdest" ]; then
- dest="$targetdest"
- echo "Destination snapshot directory: $dest"
-elif [ -n "$PIP_MICROPY_DEST" ]; then
+if [ -n "$PIP_MICROPY_DEST" ]; then
dest="$PIP_MICROPY_DEST"
echo "Destination snapshot directory: $dest"
elif [ -n "$MICROPYPATH" ]; then