Skip to content

Commit

Permalink
[SCons] Keep conda build environment path out of generated cantera.pc
Browse files Browse the repository at this point in the history
  • Loading branch information
speth authored and ischoegl committed Aug 9, 2023
1 parent 31f1516 commit e058ab9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion platform/posix/SConscript
Expand Up @@ -18,7 +18,13 @@ pc_libdirs = []
pc_incdirs = []
pc_cflags = list(localenv['CXXFLAGS'])

if not localenv["package_build"]:
if localenv["package_build"]:
# Remove local conda build environment from the installed include list
for i in range(len(pc_cflags) - 1):
if pc_cflags[i] == '-isystem' and '/_build_env/' in pc_cflags[i+1]:
del pc_cflags[i:i+2]
break
else:
pc_incdirs.extend(localenv["extra_inc_dirs"])
pc_libdirs.extend(localenv["extra_lib_dirs"])

Expand Down

0 comments on commit e058ab9

Please sign in to comment.