Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CONDA_BUILD_SYSROOT needs to be explicitly passed #47

Closed
astrofrog opened this issue May 22, 2020 · 2 comments
Closed

CONDA_BUILD_SYSROOT needs to be explicitly passed #47

astrofrog opened this issue May 22, 2020 · 2 comments

Comments

@astrofrog
Copy link

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?

@AntoineD
Copy link
Collaborator

@astrofrog
tox-conda 0.8 should address this kind of issues (although not perfectly), you may give it a try.

@AntoineD
Copy link
Collaborator

No update from author: closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants