mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 07:18:11 +00:00
Don't error during sdist if config-host.mak doesn't exist (#846)
This commit is contained in:
parent
6d8031eca4
commit
744c34261f
1 changed files with 6 additions and 2 deletions
|
@ -92,8 +92,12 @@ def copy_sources():
|
||||||
shutil.copytree(os.path.join(ROOT_DIR, '../../include'), os.path.join(SRC_DIR, 'include/'))
|
shutil.copytree(os.path.join(ROOT_DIR, '../../include'), os.path.join(SRC_DIR, 'include/'))
|
||||||
# make -> configure -> clean -> clean tests fails unless tests is present
|
# make -> configure -> clean -> clean tests fails unless tests is present
|
||||||
shutil.copytree(os.path.join(ROOT_DIR, '../../tests'), os.path.join(SRC_DIR, 'tests/'))
|
shutil.copytree(os.path.join(ROOT_DIR, '../../tests'), os.path.join(SRC_DIR, 'tests/'))
|
||||||
# remove site-specific configuration file
|
try:
|
||||||
os.remove(os.path.join(SRC_DIR, 'qemu/config-host.mak'))
|
# remove site-specific configuration file
|
||||||
|
# might not exist
|
||||||
|
os.remove(os.path.join(SRC_DIR, 'qemu/config-host.mak'))
|
||||||
|
except OSError:
|
||||||
|
pass
|
||||||
|
|
||||||
src.extend(glob.glob(os.path.join(ROOT_DIR, "../../*.[ch]")))
|
src.extend(glob.glob(os.path.join(ROOT_DIR, "../../*.[ch]")))
|
||||||
src.extend(glob.glob(os.path.join(ROOT_DIR, "../../*.mk")))
|
src.extend(glob.glob(os.path.join(ROOT_DIR, "../../*.mk")))
|
||||||
|
|
Loading…
Reference in a new issue