From d71152ef6674710b4dd908ce840424c02c2189c4 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 20 May 2020 11:30:50 +0200 Subject: [PATCH] litex_setup: move requests import to avoid having to install it on travis. --- litex_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex_setup.py b/litex_setup.py index 6438aa9b1..cd0d43a01 100755 --- a/litex_setup.py +++ b/litex_setup.py @@ -7,7 +7,6 @@ import shutil import hashlib from collections import OrderedDict -import requests import urllib.request current_path = os.path.abspath(os.curdir) @@ -106,6 +105,7 @@ litex_setup_url = "https://raw.githubusercontent.com/enjoy-digital/litex/master/ current_sha1 = hashlib.sha1(open(os.path.realpath(__file__)).read().encode("utf-8")).hexdigest() print("[checking litex_setup.py]...") try: + import requests r = requests.get(litex_setup_url) if r.status_code != 404: upstream_sha1 = hashlib.sha1(r.content).hexdigest()