|
|
|
|
|
|
|
|
|
|
EditorUtility.DisplayProgressBar("Setting up Pyrception", "Installing virtualenv...", 0 / steps); |
|
|
|
int ExitCode = 0; |
|
|
|
ExitCode = ExecuteCMD("pip install virtualenv"); |
|
|
|
if (ExitCode != 0) |
|
|
|
ExitCode = ExecuteCMD("pip3 install virtualenv"); |
|
|
|
if (ExitCode != 0) { |
|
|
|
EditorUtility.ClearProgressBar(); |
|
|
|
|
|
|
|
} |
|
|
|
ExitCode = ExecuteCMD($"virtualenv \"{path}/DataInsightsEnv\""); |
|
|
|
ExitCode = ExecuteCMD($"virtualenv -p python3 \"{path}/DataInsightsEnv\""); |
|
|
|
if (ExitCode != 0) |
|
|
|
if (ExitCode != 0) { |
|
|
|
EditorUtility.ClearProgressBar(); |
|
|
|
} |
|
|
|
|
|
|
|
EditorUtility.DisplayProgressBar("Setting up Pyrception", "Getting pyrception files...", 2f / steps); |
|
|
|
|
|
|
|
|
|
|
ExitCode = ExecuteCMD($"\\cp -r \"{pyrceptionPath}\" \"{path}/DataInsightsEnv/pyrception-util\""); |
|
|
|
#endif
|
|
|
|
if (ExitCode != 0) |
|
|
|
if (ExitCode != 0) { |
|
|
|
EditorUtility.ClearProgressBar(); |
|
|
|
} |
|
|
|
|
|
|
|
EditorUtility.DisplayProgressBar("Setting up Pyrception", "Installing pyrception utils...", 2.5f / steps); |
|
|
|
|
|
|
|
|
|
|
ExitCode = ExecuteCMD($"\"{path}/DataInsightsEnv/Scripts/activate\"; cd \"{path}/DataInsightsEnv/pyrception-util\"; pip --no-cache-dir install -e .; deactivate"); |
|
|
|
ExitCode = ExecuteCMD($"source \"{path}/DataInsightsEnv/Scripts/activate\"; cd \"{path}/DataInsightsEnv/pyrception-util\"; pip --no-cache-dir install -e .; deactivate"); |
|
|
|
if (ExitCode != 0) |
|
|
|
if (ExitCode != 0) { |
|
|
|
EditorUtility.ClearProgressBar(); |
|
|
|
} |
|
|
|
|
|
|
|
EditorUtility.ClearProgressBar(); |
|
|
|
} |
|
|
|