This commit is contained in:
Erik Fröjdh
2025-10-29 09:19:28 +01:00
parent d3dc92b18b
commit 62488a8ce6
4 changed files with 1209 additions and 1230 deletions

View File

@@ -79,4 +79,10 @@ def system_include_paths(compiler, cpp=True):
line = line.strip()
paths.append(line)
paths = [p.decode('utf-8') for p in paths]
# Only keep include paths from the conda prefix
# remove anything pointing to gcc
prefix = os.environ['CONDA_PREFIX']
paths = [p for p in paths if prefix in p]
paths = [p for p in paths if 'gcc' not in p]
return paths