Skip to content

Default platforms are unexpectedly added from multiple sources #337

Description

@maresb

Checklist

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

What happened?

If I use both pyproject.toml and a supplemental environment.yml as sources, and if I specify platforms in pyproject.toml but not in environment.yml, I would expect the resulting platforms to be the list from pyproject.toml. Instead it's those platforms union the default platforms (linux-64, osx-64, win-64).

The logic in parse_source_files looks odd to me. It seems like we add the default platforms if they are missing from any source file (except for pyproject.toml?).

I would have expected that we take the union of all platforms from all source files, and then substitute the default platforms only if that were empty.

Ping @srilman since this involves code we've been looking at recently.

Conda Info

No response

Conda Config

No response

Conda list

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions