Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search Sign up Reseting focus

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

conda / conda Public

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

Add --yes / -y flag to conda env create command #12837

ktaletsk opened this issue Jun 29, 2023 · 2 comments

Add --yes / -y flag to conda env create command #12837

ktaletsk opened this issue Jun 29, 2023 · 2 comments locked [bot] locked due to inactivity type::feature request for a new feature or capability

Comments

ktaletsk commented Jun 29, 2023 •

Checklist

What is the idea?

In my workflow I manually create conda environment files as described here, i.e.

name: stats2 channels: - javascript dependencies: - python=3.9 - bokeh=2.4.2 - conda-forge::numpy=1.21.* - nodejs=16.13.* - flask - pip - pip: - Flask-Testing 

and then build them in CI inside of the container using conda env create --prefix --file environment.yaml

However, I recently encountered a package with pre-link script, requiring me to agree to license terms:

The following PRELINK MESSAGES are INCLUDED: File nvcomp.txt: By downloading and using the libcudf conda package, you accept the terms and conditions of the NVIDIA NVCOMP Software License Agreement: https://developer.download.nvidia.com/compute/nvcomp/2.3/LICENSE.txt Proceed ([y]/n)? 

I have to manually type y to continue and this would not work in CI.

My suggestion is to add --yes / -y flag to conda env create command, to have the similar functionality as conda create command

Why is this needed?

Anyone building conda environments in CI that include license agreements

What should happen?

New command flag should be added:

conda env create . -y should automatically agree and skip and prompts

Additional Context

I am able to achieve the desired effect by using conda create -c . -y , but I

  1. Lose ability to install pip packages together with conda ones
  2. Have to have track package versions in the long string as opposed to nicely formatted yaml file

The text was updated successfully, but these errors were encountered: