upip: Remove wget fallback.

pull/106/head
Paul Sokolovsky 2016-10-01 17:32:07 -07:00
rodzic cbc423ae41
commit ab714615c6
1 zmienionych plików z 28 dodań i 40 usunięć

Wyświetl plik

@ -90,11 +90,10 @@ def expandhome(s):
s = s.replace("~/", h + "/")
return s
try:
import ussl
import usocket
warn_ussl = True
def url_open(url):
import ussl
import usocket
warn_ussl = True
def url_open(url):
global warn_ussl
proto, _, host, urlpath = url.split('/', 3)
ai = usocket.getaddrinfo(host, 443)
@ -126,17 +125,6 @@ try:
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):
f = url_open("https://pypi.python.org/pypi/%s/json" % name)