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

Syntax to specify specific variant in requirements #5166

Open
2 tasks done
GuillaumeQuenneville opened this issue Feb 4, 2024 · 0 comments
Open
2 tasks done

Syntax to specify specific variant in requirements #5166

GuillaumeQuenneville opened this issue Feb 4, 2024 · 0 comments
Labels
source::contributor created by a frequent contributor type::documentation request for improved documentation

Comments

@GuillaumeQuenneville
Copy link

GuillaumeQuenneville commented Feb 4, 2024

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

Hi,

I can't seem to find in the documentation how to specify requirements that need a specific variant

  - fftw[build=mpi_openmpi*]
  - hdf5[build=mpi_openmpi*]

Are valid in environment files and in conda install -c conda-forge "fftw[build=mpi_openmpi*]" but not in meta.yaml's. It returns

Error: Invalid selector in meta.yaml line 24:
offending line:
    - fftw[build=mpi_openmpi*]
exception:

Using {{ "fftw[build=mpi_openmpi*]" }} returns the same issue so I don't think it's an issue with jinja substitution.

Thank you

Additional Context

Steps to reproduce

 conda skeleton pypi click
# Add - fftw[build=mpi_openmpi*] to any of the requirements in the meta.yaml
conda build click
WARNING: No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.22
Error: Invalid selector in meta.yaml line 22:
offending line:
    - fftw[build=mpi_openmpi*]
exception:
invalid syntax (<string>, line 1)

Versions tested

conda                     24.1.0           py39h06a4308_0
conda-build               24.1.0           py39h06a4308_0
@GuillaumeQuenneville GuillaumeQuenneville added the type::documentation request for improved documentation label Feb 4, 2024
@travishathaway travishathaway added the source::contributor created by a frequent contributor label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source::contributor created by a frequent contributor type::documentation request for improved documentation
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants