{android,win32}/build.py: use makedirs(exist_ok)
This commit is contained in:
parent
2a02576d6d
commit
10782f4c84
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue