mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
tools/mpremote: Add mpremote mip install to install packages.
This supports the same package sources as the new `mip` tool. - micropython-lib (by name) - http(s) & github packages with json description - directly downloading a .py/.mpy file The version is specified with an optional `@version` on the end of the package name. The target dir, index, and mpy/no-mpy can be set through command line args. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
@@ -78,17 +78,17 @@ The :term:`mpremote` tool also includes the same functionality as ``mip`` and
|
||||
can be used from a host PC to install packages to a locally connected device
|
||||
(e.g. via USB or UART)::
|
||||
|
||||
$ mpremote install pkgname
|
||||
$ mpremote install pkgname@x.y
|
||||
$ mpremote install http://example.com/x/y/foo.py
|
||||
$ mpremote install github:org/repo
|
||||
$ mpremote install github:org/repo@branch-or-tag
|
||||
$ mpremote mip install pkgname
|
||||
$ mpremote mip install pkgname@x.y
|
||||
$ mpremote mip install http://example.com/x/y/foo.py
|
||||
$ mpremote mip install github:org/repo
|
||||
$ mpremote mip install github:org/repo@branch-or-tag
|
||||
|
||||
The ``--target=path``, ``--no-mpy``, and ``--index`` arguments can be set::
|
||||
|
||||
$ mpremote install --target=/flash/third-party pkgname
|
||||
$ mpremote install --no-mpy pkgname
|
||||
$ mpremote install --index https://host/pi pkgname
|
||||
$ mpremote mip install --target=/flash/third-party pkgname
|
||||
$ mpremote mip install --no-mpy pkgname
|
||||
$ mpremote mip install --index https://host/pi pkgname
|
||||
|
||||
Installing packages manually
|
||||
----------------------------
|
||||
|
||||
Reference in New Issue
Block a user