Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pixi add with more than just package name and version #1704

Merged
merged 6 commits into from
Aug 1, 2024

Conversation

ruben-arts
Copy link
Contributor

Fixes #1697
We broke pixi add --pypi pytest[dev] as it didn't add the [dev] anymore. Now that is fixed.

@ruben-arts ruben-arts changed the title Fix/add pypi extra fix: add pypi extras through pixi add --pypi package[extra] Jul 31, 2024
@ruben-arts
Copy link
Contributor Author

@baszalmstra I wasn't happy, and found out pixi add pytorch::pytorch was also broken. I now also fixed that in this pr and just reuse the requirement and matchspec as is.

Copy link
Contributor Author

@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.

Some mentions of why I added some test stuff.

let pixi = PixiControl::new().unwrap();

pixi.init()
.no_fast_prefix_overwrite(true)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can't use url's in matchspecs yet, fix in: conda/rattler#792

.await
.unwrap();

pixi.add("conda-forge::py_rattler").without_lockfile_update().await.unwrap();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently still a slow test as there is a bug in this --no-lockfile-update so it is actually solving. This is fixed in: #1683

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Otherwise I would have used the mock PackageDatabase 😉

@ruben-arts ruben-arts changed the title fix: add pypi extras through pixi add --pypi package[extra] fix: pixi add with more than just package name and version Jul 31, 2024
@ruben-arts ruben-arts merged commit bd1424e into prefix-dev:main Aug 1, 2024
24 checks passed
@ruben-arts ruben-arts deleted the fix/add_pypi_extra branch August 1, 2024 10:01
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.

Tensorflow GPU install
3 participants