From dfd5aec7b0168828228f3f1c1b4890c8570b2f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Thu, 3 Feb 2022 20:32:35 +0100 Subject: [PATCH] setup: Fix the local .egg logic --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 436f2dc..1dd5684 100755 --- a/setup.py +++ b/setup.py @@ -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)