kopia lustrzana https://github.com/micropython/micropython-lib
upip: Remove wget fallback.
rodzic
cbc423ae41
commit
ab714615c6
12
upip/upip.py
12
upip/upip.py
|
@ -90,7 +90,6 @@ def expandhome(s):
|
||||||
s = s.replace("~/", h + "/")
|
s = s.replace("~/", h + "/")
|
||||||
return s
|
return s
|
||||||
|
|
||||||
try:
|
|
||||||
import ussl
|
import ussl
|
||||||
import usocket
|
import usocket
|
||||||
warn_ussl = True
|
warn_ussl = True
|
||||||
|
@ -126,17 +125,6 @@ try:
|
||||||
|
|
||||||
return s
|
return s
|
||||||
|
|
||||||
except ImportError:
|
|
||||||
|
|
||||||
def download(url, local_name):
|
|
||||||
if debug:
|
|
||||||
print("wget -q %s -O %s" % (url, local_name))
|
|
||||||
rc = os.system("wget -q %s -O %s" % (url, local_name))
|
|
||||||
if local_name not in cleanup_files:
|
|
||||||
cleanup_files.append(local_name)
|
|
||||||
if rc == 8 * 256:
|
|
||||||
raise NotFoundError
|
|
||||||
|
|
||||||
|
|
||||||
def get_pkg_metadata(name):
|
def get_pkg_metadata(name):
|
||||||
f = url_open("https://pypi.python.org/pypi/%s/json" % name)
|
f = url_open("https://pypi.python.org/pypi/%s/json" % name)
|
||||||
|
|
Ładowanie…
Reference in New Issue