Skip to content

Add source distribution support to uv-build crate#6896

Merged
charliermarsh merged 1 commit intomainfrom
charlie/sdist
Sep 2, 2024
Merged

Add source distribution support to uv-build crate#6896
charliermarsh merged 1 commit intomainfrom
charlie/sdist

Conversation

@charliermarsh
Copy link
Member

Summary

Just exposes the correct PEP 517 hooks.

@charliermarsh charliermarsh added the internal A refactor or improvement that is not user-facing label Aug 31, 2024
@charliermarsh charliermarsh requested a review from konstin August 31, 2024 18:06
@charliermarsh charliermarsh added enhancement New feature or improvement to existing functionality and removed internal A refactor or improvement that is not user-facing labels Aug 31, 2024
pub async fn build_wheel(&self, wheel_dir: &Path) -> Result<String, Error> {
// The build scripts run with the extracted root as cwd, so they need the absolute path.
let wheel_dir = fs::canonicalize(wheel_dir)?;
let wheel_dir = std::path::absolute(wheel_dir)?;
Copy link
Member Author

Choose a reason for hiding this comment

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

I also changed this from canonicalize to absolute, since the error isn't very good if the directory doesn't exist.

@charliermarsh charliermarsh enabled auto-merge (squash) September 2, 2024 18:08
@charliermarsh charliermarsh merged commit 42a4d80 into main Sep 2, 2024
@charliermarsh charliermarsh deleted the charlie/sdist branch September 2, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or improvement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants