Skip to content

Commit d881e4a

Browse files
author
Martin Larralde
committed
Fix os.makedirs not acceptin exists_ok in Python 2.7
1 parent ee8b716 commit d881e4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setuptools_rust/tomlgen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def run(self):
105105
)
106106

107107
if not os.path.exists(os.path.join(cfgdir, "config")) or self.force:
108-
os.makedirs(cfgdir, exist_ok=True)
108+
if not os.path.exists(cfgdir):
109+
os.makedirs(cfgdir)
109110
with open(os.path.join(cfgdir, 'config'), 'w') as config:
110111
log.info("creating '.cargo/config' for workspace")
111112

0 commit comments

Comments
 (0)