-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7611ddd
commit 610bad4
Showing
6 changed files
with
82 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env python | ||
|
||
import os | ||
import shutil | ||
import subprocess | ||
from importlib.util import find_spec | ||
|
||
anchor_found = find_spec("anchor") is not None | ||
|
||
conda_path = shutil.which("conda") | ||
mamba_path = shutil.which("mamba") | ||
if mamba_path is None: | ||
print("No mamba found, installing first...") | ||
subprocess.call([conda_path, "install", "-c", "conda-forge", "-y", "mamba"], env=os.environ) | ||
package_list = ["montreal-forced-aligner", "kalpy", "kaldi=*=cpu*"] | ||
if anchor_found: | ||
package_list.append("anchor-annotator") | ||
subprocess.call([mamba_path, "update", "-c", "conda-forge", "-y"] + package_list, env=os.environ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters