Skip to content

Commit

Permalink
Fix mkdir breaking due to #1123 (#1245)
Browse files Browse the repository at this point in the history
Mkdir is breaking when folder is already existing, this allows it not to fail if target exists
  • Loading branch information
Hartorn authored and sdispater committed Aug 2, 2019
1 parent e5e706a commit 93e562e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poetry/masonry/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def prepare_metadata_for_build_wheel(metadata_directory, config_settings=None):
builder = WheelBuilder(poetry, SystemEnv(Path(sys.prefix)), NullIO())

dist_info = Path(metadata_directory, builder.dist_info)
dist_info.mkdir()
dist_info.mkdir(parents=True, exist_ok=True)

if "scripts" in poetry.local_config or "plugins" in poetry.local_config:
with (dist_info / "entry_points.txt").open("w", encoding="utf-8") as f:
Expand Down

0 comments on commit 93e562e

Please sign in to comment.