Setting the environment here feels like a horrific hack and quite fragile. Unfortunately, not setting it runs into this issue ( https://github.com/conda/conda-build/issues/910 ). So, not really sure there is another option ATM. 