Skip to content

Conversation

calebzulawski
Copy link
Contributor

Description

Ensure install prefix (and therefore substitution paths) are absolute to fix #1037

.target_prefix
.as_deref()
.unwrap_or(target_dir)
let target_prefix = std::path::absolute(options.target_prefix.as_deref().unwrap_or(target_dir))
Copy link
Collaborator

Choose a reason for hiding this comment

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

We might have to use dunce to ensure paths are not in unc format on windows.

@wolfv
Copy link
Contributor

wolfv commented Mar 24, 2025

There is also #1155 that introduces a new Prefix type.

@calebzulawski
Copy link
Contributor Author

There is also #1155 that introduces a new Prefix type.

Maybe it should be fixed there, then... maybe in Prefix::create?

@baszalmstra
Copy link
Collaborator

#1155 was finally merged, could you maybe update your code?

@baszalmstra
Copy link
Collaborator

@calebzulawski Could you take another look at this PR?

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.

py-rattler install with a relative prefix path results in invalid dynamic library dependency paths

3 participants