setup: Fix the local .egg logic

This commit is contained in:
Ole André Vadla Ravnås
2022-02-03 20:32:35 +01:00
parent ee526d07ac
commit dfd5aec7b0
+5 -2
View File
@@ -148,11 +148,14 @@ class FridaPrebuiltExt(build_ext):
except Exception:
print(errmsg.format(timeout))
raise
else:
egg_url = None
egg_file = BytesIO(egg_data)
print("checking hash")
check_pep503_hash(egg_file, egg_url)
if egg_url is not None:
print("checking hash")
check_pep503_hash(egg_file, egg_url)
print("extracting prebuilt extension")
egg_zip = zipfile.ZipFile(egg_file)