Skip to content

Commit

Permalink
Fix python installer launch detection
Browse files Browse the repository at this point in the history
  • Loading branch information
hrntsm committed Aug 7, 2022
1 parent 3c74cdd commit 36cbedc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tunny/Util/PythonInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ internal static bool CheckPackagesIsInstalled()
}
foreach (string package in packageList)
{
string[] singleFilePackages = { "bottle", "optuna-dashboard", "six", "PyYAML", "scikit-learn", "threadpoolctl" };
if (!Installer.IsModuleInstalled(package) && !singleFilePackages.Contains(package))
string[] singleFilePackages = { "bottle", "optuna-dashboard", "six", "PyYAML", "scikit-learn", "threadpoolctl", "typing_extensions" };
string[] useUnderLinePackages = { "opt-einsum", "pyro-api", "pyro-ppl" };
if (!Installer.IsModuleInstalled(package) && !singleFilePackages.Contains(package) && !useUnderLinePackages.Contains(package))
{
return false;
}
Expand Down

0 comments on commit 36cbedc

Please sign in to comment.