Skip to content

perf: Making UV the default installer, unless specified explicitly#5733

Open
suleman1412 wants to merge 9 commits intoprefix-dev:mainfrom
suleman1412:uv-default-installer
Open

perf: Making UV the default installer, unless specified explicitly#5733
suleman1412 wants to merge 9 commits intoprefix-dev:mainfrom
suleman1412:uv-default-installer

Conversation

@suleman1412
Copy link
Copy Markdown
Contributor

@suleman1412 suleman1412 commented Mar 19, 2026

Description

This works on making the uv the default installer in pixi_build_python crate, unless specified in the config file to be pip

Fixes #5666

How Has This Been Tested?

cargo test -p pixi_build_python
image

AI Disclosure

  • [ x ] This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.
      Tools: Claude

Checklist:

  • [ x ] I have performed a self-review of my own code
  • [ x ] I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • [ x ] I have added sufficient tests to cover my changes.
  • I have verified that changes that would impact the JSON schema have been made in schema/model.py.

@suleman1412
Copy link
Copy Markdown
Contributor Author

@Hofer-Julian this PR aims to make UV the default installer in pixi_build_python unless specified explicity in the toml file

@suleman1412
Copy link
Copy Markdown
Contributor Author

Hi @Hofer-Julian / @baszalmstra , this PR aims to make uv as the default installer until explicitly specified in the config toml file. Please have a look at it when possible


/// Determine the installer from an iterator of dependency package names.
/// Checks if "uv" is present in the package names.
pub fn determine_installer_from_names<'a>(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why remove? Cant we check if an installer is set based on the dependencies and use that, otherwise use the default?

/// compatibility with packages that require pip-specific behavior.
/// Supported values: `"uv"` (default), `"pip"`
#[serde(default)]
pub installer: Option<Installer>,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I dont see why we need this. Lets just keepnthe behavior where this is derived

@suleman1412
Copy link
Copy Markdown
Contributor Author

@baszalmstra my previous implementation was based on checking what we used in the dependencies and picking based on that. You can find it here — #5669

Please let me know if my understanding of the issue is correct, or if there's a different direction you had in mind.

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.

Make uv the default for pixi-build-python

2 participants