Skip to content

Commit

Permalink
Fix download_binaries to always redownload
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcauliffe committed Jan 4, 2021
1 parent fb82131 commit b0fd865
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 145 deletions.
8 changes: 4 additions & 4 deletions montreal_forced_aligner/thirdparty/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ def download_binaries():
plat = 'win64'
else:
plat = 'linux'
print('Downloading precompiled binaries for {}...'.format(plat))

download_link = 'https://github.com/MontrealCorpusTools/mfa-models/raw/master/thirdparty/mfa_thirdparty_{}.zip'.format(
plat)
bin_dir = os.path.join(base_dir, 'bin')
path = os.path.join(base_dir, '{}.zip'.format(plat))
if not os.path.exists(bin_dir):
with tqdm(unit='B', unit_scale=True, miniters=1) as t:
filename, headers = urlretrieve(download_link, path, reporthook=tqdm_hook(t), data=None)
if os.path.exists(bin_dir):
shutil.rmtree(bin_dir, ignore_errors=True)
with tqdm(unit='B', unit_scale=True, miniters=1) as t:
filename, headers = urlretrieve(download_link, path, reporthook=tqdm_hook(t), data=None)
shutil.unpack_archive(path, base_dir)
os.remove(path)
if plat != 'win':
Expand Down
123 changes: 0 additions & 123 deletions thirdparty/README.md

This file was deleted.

18 changes: 0 additions & 18 deletions thirdparty/analyze_report.py

This file was deleted.

0 comments on commit b0fd865

Please # to comment.