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

Specifying conda-environment=<file> in cirrus.conf does not work #174

Open
jordansamuels opened this issue Aug 25, 2017 · 1 comment
Open

Comments

@jordansamuels
Copy link
Collaborator

Even if you specify e.g.

[build]
builder = CondaEnv
conda-environment = environment.yml

in cirrus.conf, you still get:

RuntimeError: No conda environment yaml specified in cirrus.conf [build] section or via --environment option

when you run conda build . The workaround is to specify on command line conda build --environment=environment.yml .

The reason this appears to be happening is that in conda_env.py, this code

        self.plugin_parser.add_argument(
            '--environment',
            help='conda environment file to process',
            default=None
        )

causes the lookup here

        environment = kwargs.get(
            'environment',
            self.build_config.get('conda-environment', None)
        )

to fail, because the kwargs['environment'] = None so the build_config.get is never invoked.

evansde77 pushed a commit that referenced this issue Aug 31, 2017
@evansde77
Copy link
Owner

#175

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