Checklist
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
Checklist
What happened?
If I use both
pyproject.tomland a supplementalenvironment.ymlas sources, and if I specify platforms inpyproject.tomlbut not inenvironment.yml, I would expect the resulting platforms to be the list frompyproject.toml. Instead it's those platforms union the default platforms (linux-64, osx-64, win-64).The logic in
parse_source_fileslooks odd to me. It seems like we add the default platforms if they are missing from any source file (except forpyproject.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