Skip to content

Commit 82f54e4

Browse files
committed
Update
[ghstack-poisoned]
1 parent 7ddbc04 commit 82f54e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ def write_to_python_file(cls, path: str) -> None:
147147
print(f"WD files: {list(os.listdir(os.getcwd()))}", file=sys.stderr)
148148
print(f"Pip out: {list(os.listdir(os.getcwd() + "/pip-out"))}", file=sys.stderr)
149149

150+
os.makedirs(os.path.dirname(path), exist_ok=True)
151+
150152
try:
151153
path1 = os.path.dirname(path)
152154
path2 = os.path.dirname(path1)
@@ -155,7 +157,7 @@ def write_to_python_file(cls, path: str) -> None:
155157
print(f"Files at {path1}: {list(os.listdir(path1))}", file=sys.stderr)
156158
finally:
157159
pass
158-
160+
159161
lines = [
160162
"from typing import Optional",
161163
'__all__ = ["__version__", "git_version"]',

0 commit comments

Comments
 (0)