{android,win32}/build.py: use makedirs(exist_ok)

This commit is contained in:
Max Kellermann 2021-09-21 16:04:26 +02:00
parent 2a02576d6d
commit 10782f4c84
2 changed files with 2 additions and 8 deletions

View File

@ -140,10 +140,7 @@ class AndroidNdkToolchain:
# default one on the build host # default one on the build host
import shutil import shutil
bin_dir = os.path.join(install_prefix, 'bin') bin_dir = os.path.join(install_prefix, 'bin')
try: os.makedirs(bin_dir, exist_ok=True)
os.makedirs(bin_dir)
except:
pass
self.pkg_config = shutil.copy(os.path.join(mpd_path, 'build', 'pkg-config.sh'), self.pkg_config = shutil.copy(os.path.join(mpd_path, 'build', 'pkg-config.sh'),
os.path.join(bin_dir, 'pkg-config')) os.path.join(bin_dir, 'pkg-config'))
self.env['PKG_CONFIG'] = self.pkg_config self.env['PKG_CONFIG'] = self.pkg_config

View File

@ -83,10 +83,7 @@ class CrossGccToolchain:
# default one on the build host # default one on the build host
import shutil import shutil
bin_dir = os.path.join(install_prefix, 'bin') bin_dir = os.path.join(install_prefix, 'bin')
try: os.makedirs(bin_dir, exist_ok=True)
os.makedirs(bin_dir)
except:
pass
self.pkg_config = shutil.copy(os.path.join(mpd_path, 'build', 'pkg-config.sh'), self.pkg_config = shutil.copy(os.path.join(mpd_path, 'build', 'pkg-config.sh'),
os.path.join(bin_dir, 'pkg-config')) os.path.join(bin_dir, 'pkg-config'))
self.env['PKG_CONFIG'] = self.pkg_config self.env['PKG_CONFIG'] = self.pkg_config