Skip to content

preferred=True overrides packages.yaml (and it shouldn't) #1556

@citibeth

Description

@citibeth

Try the following:

  1. Clone latest Spack develop.
  2. Use the following packages.yaml:
packages:
    python:
        version: [3.5]
  1. spack spec python yields:
  [email protected]%[email protected]~tk~ucs4 arch=linux-centos7-x86_64

This is wrong. preferred=True should have the same precedence as one version simply having the highest number. It is possible to get v3.5 with spack spec python@3:

[email protected]%[email protected]~tk~ucs4 arch=linux-centos7-x86_64

For now, I'm removing preferred=True from python/package.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions