From 84a6e900af1fc8af4b9872dfa7db512a741aa6f4 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 25 Dec 2020 00:24:01 +0100 Subject: [PATCH] dist: Fix error using build_apps in Python 2.7 --- 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 d29f9dad87..c610a9c679 100644 --- a/direct/src/dist/commands.py +++ b/direct/src/dist/commands.py @@ -459,7 +459,8 @@ class build_apps(setuptools.Command): abi_tag += 'u' whldir = os.path.join(whlcache, '_'.join((platform, abi_tag))) - os.makedirs(whldir, exist_ok=True) + if not os.path.isdir(whldir): + os.makedirs(whldir) # Remove any .zip files. These are built from a VCS and block for an # interactive prompt on subsequent downloads.