dist: Fix error using build_apps in Python 2.7

This commit is contained in:
rdb 2020-12-25 00:24:01 +01:00
parent 030bdd1d34
commit 84a6e900af

View File

@ -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.