From 1389ada3845bc6de46091d1db7579ca798b5cb80 Mon Sep 17 00:00:00 2001 From: LD Date: Fri, 18 Jan 2019 13:19:35 +0100 Subject: [PATCH] setuptools: os.makedirs does not support 'exist_ok' parameter in Python2 Closes #540 --- direct/src/dist/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/direct/src/dist/commands.py b/direct/src/dist/commands.py index abf0e9f777..948891d19d 100644 --- a/direct/src/dist/commands.py +++ b/direct/src/dist/commands.py @@ -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: