Commit 93e562ec by Hartorn Committed by Sébastien Eustace

Fix mkdir breaking due to #1123 (#1245)

Mkdir is breaking when folder is already existing, this allows it not to fail if target exists
parent e5e706a4
...@@ -37,7 +37,7 @@ def prepare_metadata_for_build_wheel(metadata_directory, config_settings=None): ...@@ -37,7 +37,7 @@ def prepare_metadata_for_build_wheel(metadata_directory, config_settings=None):
builder = WheelBuilder(poetry, SystemEnv(Path(sys.prefix)), NullIO()) builder = WheelBuilder(poetry, SystemEnv(Path(sys.prefix)), NullIO())
dist_info = Path(metadata_directory, builder.dist_info) 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: 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: with (dist_info / "entry_points.txt").open("w", encoding="utf-8") as f:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment