Skip to content

Commit 027c33e

Browse files
committed
Create out dir before writing sdist to it
1 parent e7a6a09 commit 027c33e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/build_context.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ impl BuildContext {
129129

130130
/// Builds a source distribution and returns the same metadata as [BuildContext::build_wheels]
131131
pub fn build_source_distribution(&self) -> Result<Option<BuiltWheelMetadata>, Error> {
132+
fs::create_dir_all(&self.out)
133+
.context("Failed to create the target directory for the source distribution")?;
134+
132135
if get_pyproject_toml(self.manifest_path.parent().unwrap()).is_ok() {
133136
let sdist_path = source_distribution(&self.out, &self.metadata21, &self.manifest_path)
134137
.context("Failed to build source distribution")?;

0 commit comments

Comments
 (0)