From d01338b168f2f9b7722e80ff4145ce6e2c3c63fc Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Mon, 26 Apr 2021 15:37:08 +0200 Subject: [PATCH] SIP - Windows wrong version in environment file... --- products/env_scripts/sip.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/products/env_scripts/sip.py b/products/env_scripts/sip.py index 23fa384..9b79f12 100644 --- a/products/env_scripts/sip.py +++ b/products/env_scripts/sip.py @@ -22,11 +22,12 @@ def set_env(env, prereq_dir, version): env.prepend('CPLUS_INCLUDE_PATH', os.path.join(prereq_dir, 'include', pyver)) else: env.prepend('CPLUS_INCLUDE_PATH', os.path.join(prereq_dir, 'include', pyver)) - if '5.5.1' in version: - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', 'site-packages')) + if '5.5.0' in version: + env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'Lib', 'site-packages')) + env.prepend('PATH', os.path.join(prereq_dir, 'scripts')) else: env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) - env.prepend('PATH', os.path.join(prereq_dir, 'bin')) + env.prepend('PATH', os.path.join(prereq_dir, 'bin')) def set_nativ_env(env): env.set('SIPDIR', '/usr') -- 2.39.2