Browse Source

dist: Fix error using build_apps in Python 2.7

rdb 5 years ago
parent
commit
84a6e900af
1 changed files with 2 additions and 1 deletions
  1. 2 1
      direct/src/dist/commands.py

+ 2 - 1
direct/src/dist/commands.py

@@ -459,7 +459,8 @@ class build_apps(setuptools.Command):
             abi_tag += 'u'
             abi_tag += 'u'
 
 
         whldir = os.path.join(whlcache, '_'.join((platform, abi_tag)))
         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
         # Remove any .zip files. These are built from a VCS and block for an
         # interactive prompt on subsequent downloads.
         # interactive prompt on subsequent downloads.