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

Automatically add .* to requirements with <pkg> <version> #1444

Open
jakirkham opened this issue Feb 21, 2025 · 1 comment
Open

Automatically add .* to requirements with <pkg> <version> #1444

jakirkham opened this issue Feb 21, 2025 · 1 comment

Comments

@jakirkham
Copy link

When adding a requirement of the form <pkg> <version>, conda-build would intuit this as <pkg> <version>.*. It looks like rattler-build does not do this and expects it to be specified.

For example with syntax like this...

requirements:
  host:
    - python ${{ python_min }}
    - pip
    - setuptools
  run:
    - python >=${{ python_min }}

...rattler-build produces the following error...

Error: 
  × an unspecified error occurred.
    ╭─[recipe/recipe.yaml:21:7]
 20 │   host:
 21 │     - python ${{ python_min }}
    ·       ────────────┬───────────
    ·                   ╰── This match spec is ambiguous. Do you mean `python ==3.9` or `python 3.9.*`?
 22 │     - pip
    ╰────
@mgorny
Copy link
Contributor

mgorny commented Feb 22, 2025

Duplicate of #1174

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