conda/conda-build — pull request #231 by scopatz (2014-10-26 18:23:15+00:00)
Title: update metadata to use env variables in selectors

Currently, to use environment variables in selectors in `meta.yaml` files one has to go through the following import gymnastics:

```yaml
source:
fn: develop.tar.gz # [__import__('os').getenv('MY_ENV_VAR')]
```

It would be much more natural to use the environment variable directly:

```yaml
source:
fn: develop.tar.gz # [MY_ENV_VAR]
```

This PR fixes this problem by added `os.environ` to the eval'd namespace. The implementation is pretty simple so the env var must exist to be used. If the string is empty, it will be False and otherwise will be True. If the variable does not exist it will return False via the default dict.