setuptools: os.makedirs does not support 'exist_ok' parameter in Python2
Closes #540
This commit is contained in:
parent
955081f81f
commit
1389ada384
|
|
@ -1347,7 +1347,8 @@ class bdist_apps(setuptools.Command):
|
|||
|
||||
platforms = build_cmd.platforms
|
||||
build_base = os.path.abspath(build_cmd.build_base)
|
||||
os.makedirs(self.dist_dir, exist_ok=True)
|
||||
if not os.path.exists(self.dist_dir):
|
||||
os.makedirs(self.dist_dir)
|
||||
os.chdir(self.dist_dir)
|
||||
|
||||
for platform in platforms:
|
||||
|
|
|
|||
Loading…
Reference in New Issue