Skip to content

Conversation

@hunger
Copy link

@hunger hunger commented Oct 19, 2025

Description

Make pixi handle relative paths to pypi dependencies in the LockFile. This helps when checking in pixi.lock files that reference local python packages. Instead of ending up with a machine specific path in the lock file we have a relative path that should work for all developers.

This depends on the rattler part which is here: conda/rattler#1760

The PR consists of several changes:

Note: This only works with pixi.log, not when storing the pixi configuration inline in pyproject.toml. Pyproject.toml will need to get an update to enable it to handle relative paths (like accept a work directory when parsing the file as well as non-pep508-extension support). I did not want to complicate this PR by requiring another PR to yet another crate.

Relates to: #4680

@hunger
Copy link
Author

hunger commented Oct 19, 2025

CI fails right now since rattler_lock does not have the required version.

* New `Verbatim` around some of the `UrlOrPath`
* Handle base_dir on file open

No behavior change is intended here.
@hunger hunger force-pushed the push-wmptuwstlsln branch from 9367042 to 48c5dd8 Compare October 20, 2025 16:42
@hunger
Copy link
Author

hunger commented Oct 20, 2025

Updated the change about adapting to rattler API changes.

@tdejager
Copy link
Contributor

Maybe we can patch the rattler versions in this PR? So we can see if CI runs and then change it back after a rattler release?

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.

2 participants