You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My goal was to specify different macossystem-requirements for osx-64 and osx-arm64 because currently it's impossible to set it to macOS 10.14 because that does not exist for osx-arm64.
IIUC a workaround would be what I tried in this pyproject.toml, i.e. creating separate environments for osx-64 and osx-arm64 and setting the macos in their corresponding system-requirements.
But doing that revealed some bogus behavior when resolving pypi-dependencies. Here I chose numpy, because it offers wheels for different macOS versions. For the osx-64 environment I want to support macOS 10.14+ but the resolver picks a wheel for this environment that requires macOS 14.0+ which violates this requirement.
Expected behavior
For the osx-64 environment the resolver should have chosen numpy-2.2.3-cp313-cp313-macosx_10_13_x86_64.whl instead of numpy-2.2.3-cp313-cp313-macosx_14_0_x86_64.whl.
The text was updated successfully, but these errors were encountered:
where we get a violating numpy wheel for the foo environment.
I think the macos = "11.0" line isn't really considered at all by pixi. I can give it any garbage value and nothing will complain.
If it is intentional that a system requirement set by a feature is ignored when there's already something in the general system requirements then I'd say a warning that it's ignored would be good for the UX.
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
pyproject.toml
pixi install
Issue description
My goal was to specify different
macos
system-requirements
forosx-64
andosx-arm64
because currently it's impossible to set it to macOS 10.14 because that does not exist forosx-arm64
.IIUC a workaround would be what I tried in this
pyproject.toml
, i.e. creating separate environments forosx-64
andosx-arm64
and setting themacos
in their correspondingsystem-requirements
.But doing that revealed some bogus behavior when resolving pypi-dependencies. Here I chose numpy, because it offers wheels for different macOS versions. For the
osx-64
environment I want to support macOS 10.14+ but the resolver picks a wheel for this environment that requires macOS 14.0+ which violates this requirement.Expected behavior
For the
osx-64
environment the resolver should have chosennumpy-2.2.3-cp313-cp313-macosx_10_13_x86_64.whl
instead ofnumpy-2.2.3-cp313-cp313-macosx_14_0_x86_64.whl
.The text was updated successfully, but these errors were encountered: