From 2d8117a0f1de0e90ad4cae171bcf1e54a3028fb7 Mon Sep 17 00:00:00 2001 From: AeonLucid Date: Tue, 14 Jan 2020 09:08:33 -0500 Subject: [PATCH] Fixes #1143 (#1144) Backports commit c46e745338f880a7991adcd53b683722a5d52ad2 from unicorn. --- bindings/python/setup.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 349a4ef9..a147aa75 100755 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -152,11 +152,9 @@ def build_libraries(): # check if a prebuilt library exists # if so, use it instead of building - if os.path.exists(os.path.join(ROOT_DIR, 'prebuilt', LIBRARY_FILE)) \ - and (STATIC_LIBRARY_FILE is None \ - or os.path.exists(os.path.join(ROOT_DIR, 'prebuilt', STATIC_LIBRARY_FILE))): + if os.path.exists(os.path.join(ROOT_DIR, 'prebuilt', LIBRARY_FILE)): shutil.copy(os.path.join(ROOT_DIR, 'prebuilt', LIBRARY_FILE), LIBS_DIR) - if STATIC_LIBRARY_FILE is not None: + if STATIC_LIBRARY_FILE is not None and os.path.exists(os.path.join(ROOT_DIR, 'prebuilt', STATIC_LIBRARY_FILE)): shutil.copy(os.path.join(ROOT_DIR, 'prebuilt', STATIC_LIBRARY_FILE), LIBS_DIR) return