CONDA_BUILD_SYSROOT needs to be explicitly passed
astrofrog opened this issue · comments
When trying to use conda compilers inside a tox environment on MacOS X I've found that I need to explicitly pass CONDA_BUILD_SYSROOT
for things to work:
[testenv:compiler_macos_conda]
whitelist_externals:
/bin/echo
passenv:
CONDA_BUILD_SYSROOT
conda_deps:
clang_osx-64==10
commands:
/bin/echo "#include<stdio.h>\nint main() {}" > test.c
clang-10 test.c
If I don't include the passenv
clause I get the following error:
test.c:1:9: fatal error: 'stdio.h' file not found
#include<stdio.h>
^~~~~~~~~
1 error generated.
ERROR: InvocationError for command /Users/tom/miniconda3/bin/clang-10 test.c (exited with code 1)
Is there a way to make tox-conda pass this through automatically?
@astrofrog
tox-conda
0.8 should address this kind of issues (although not perfectly), you may give it a try.
No update from author: closing.