From 40f764283ba760e770d8eb0edb5e2131cc3b8f55 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 3 Aug 2014 11:26:13 +0530 Subject: [PATCH] ... --- setup/build_environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/build_environment.py b/setup/build_environment.py index 4a8ca699d2..f11601329f 100644 --- a/setup/build_environment.py +++ b/setup/build_environment.py @@ -100,7 +100,7 @@ def get_sip_dir(q): base = os.path.join(q, x) if os.path.exists(os.path.join(base, 'QtWidgets')): return base - return q + raise EnvironmentError('Failed to find the location of the PyQt5 .sip files') pyqt['pyqt_sip_dir'] = get_sip_dir(sys.prefix if iswindows else os.path.join(sys.prefix, 'share', 'sip')) pyqt['sip_inc_dir'] = sysconfig.get_path('include')