Skip to content

fix: incorrect python version was used in some parts of the solve#2481

Merged
ruben-arts merged 10 commits intoprefix-dev:mainfrom
tdejager:feat/use-correct-python-version-pypi-solve
Nov 15, 2024
Merged

fix: incorrect python version was used in some parts of the solve#2481
ruben-arts merged 10 commits intoprefix-dev:mainfrom
tdejager:feat/use-correct-python-version-pypi-solve

Conversation

@tdejager
Copy link
Contributor

@tdejager tdejager commented Nov 14, 2024

This fixes the over-use of the Intepreter in the solve, it was using it incorrectly in some parts of the resolution. This would result in weird behavior, like getting the incorrect wheels from the registry and not being to able to match them with the wheel tags, for example.

Discovered because of: #771 (comment). This should now work.

Test

To test you can try:

[project]
channels = ["conda-forge"]
name = "test"
platforms = ["osx-arm64", "linux-64"]

[dependencies]
scipy = ">=0.19"

[pypi-dependencies]
finch-mlir = ">=0.0.2"

Which did not work before and now it does.

Copy link
Contributor

@ruben-arts ruben-arts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appart from the warning, this looks good to me!

We should quickly get this in a release.

Co-authored-by: Ruben Arts <ruben@prefix.dev>
@ruben-arts ruben-arts enabled auto-merge (squash) November 14, 2024 15:24
Copy link
Contributor

@hameerabbasi hameerabbasi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo, plus maybe we should add tests?

@nichmor
Copy link
Contributor

nichmor commented Nov 14, 2024

Looks good! I think we can add this example in our test_integration to make sure that we will not introduce this regression again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants