pixi add --pypi -p <platform>
inconsistent between pixi.toml and pyproject.toml
#2149
Closed
2 tasks done
Labels
🐞 bug
Something isn't working
pyproject
🗒️ configuration
Issue related to configuration of project or global behavior
👋 good first issue
Good for newcomers
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
Tested on 0.28 since it's the latest on winget
Issue description
With
pixi.toml
, that command adds the package totarget.win-64.pypi-dependencies
as expected.But with
pyproject.toml
, it adds the package toproject.dependencies
, without any environment marker.In both scenarios, the same shell output was shown:
Expected behavior
The behavior should be consistent between
pixi.toml
andpyproject.toml
scenarios or else raise an error. The shell output shouldn't claim that the dependencies were added as platform-specific when they were not.Possibilities:
project.dependencies
(Add Environment Markers to pypi-dependencies specification #1259)--platform
and--pypi
options mutually exclusive forpyproject.toml
projects, and direct users to write the environment markers themselves (e.g.pixi add --pypi 'AssertWT;platform_system=="Windows"'
seems to work correctly, though I don't think pixi actually uses that marker yet)tool.pixi.target.win-64.pypi-dependencies
in this scenarioThe text was updated successfully, but these errors were encountered: