micropython/mip: Add upip.py and pip.py dummy modules

Added upip.py and pip.py, identical. These files throw an ImportError.
mip\'s manifest.py also altered to load as modules.
The purpose is to alert users guided to install with deprecated pip/upip
(prior to 1.20.0) to instead use mip.

Signed-off-by: Adam G <adam@adammakesthings.dev>
pull/820/head
Adam G 2024-03-05 13:02:52 -05:00
rodzic ffb07dbce5
commit 113c7ce9a1
3 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -2,4 +2,9 @@ metadata(version="0.2.0", description="On-device package installer for network-c
require("requests")
#dummy packages for pre-v1.20.0
module("pip.py", opt=3)
module("upip.py", opt=3)
package("mip", opt=3)

Wyświetl plik

@ -0,0 +1,4 @@
# Dummy module for upip and pip to redirect user to mip
raise ImportError("""This module has been deprecated, please instead use mip.
https://docs.micropython.org/en/latest/reference/packages.html
""")

Wyświetl plik

@ -0,0 +1,4 @@
# Dummy module for upip and pip to redirect user to mip
raise ImportError("""This module has been deprecated, please instead use mip.
https://docs.micropython.org/en/latest/reference/packages.html
""")