public class BasicMinicondaEnvPythonInstaller extends ExternalEnvironmentInstaller
Modifier and Type | Class and Description |
---|---|
static class |
BasicMinicondaEnvPythonInstaller.Configuration |
Constructor and Description |
---|
BasicMinicondaEnvPythonInstaller(JIPipeWorkbench workbench,
JIPipeParameterAccess parameterAccess) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
configure()
UI configuration
|
protected Path |
download()
Downloads the installer
|
protected SelectCondaEnvPythonInstaller.Configuration |
generateCondaConfig()
Generates the configuration for the conda environment
|
Path |
getCondaExecutableInInstallationPath()
Returns the path to the conda executable within the configured installation directory
|
BasicMinicondaEnvPythonInstaller.Configuration |
getConfiguration() |
PythonEnvironment |
getInstalledEnvironment()
Returns the final environment after installation
|
static String |
getLatestDownload()
Gets the latest download link for Miniconda
|
static String |
getLatestPy37Download()
Gets the latest download link for Miniconda
|
JIPipeProgressInfo |
getProgressInfo()
The info object that allows communication with the run
|
String |
getTaskLabel()
A name for the runnable
|
protected void |
install(Path installerPath)
Installs Miniconda
|
protected void |
postprocessInstall()
Applies postprocessing for the installation
|
void |
run() |
void |
runConda(String... args)
Runs the conda executable (for postprocessing)
|
void |
setConfiguration(BasicMinicondaEnvPythonInstaller.Configuration configuration) |
void |
setProgressInfo(JIPipeProgressInfo progressInfo)
Sets the progress info of this runnable
|
getParameterAccess, getWorkbench
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onFinished, onInterrupted, onProgress, onStarted
public BasicMinicondaEnvPythonInstaller(JIPipeWorkbench workbench, JIPipeParameterAccess parameterAccess)
workbench
- the workbenchparameterAccess
- the parameter access that will receive the generated environmentpublic static String getLatestDownload()
public static String getLatestPy37Download()
public String getTaskLabel()
JIPipeRunnable
public PythonEnvironment getInstalledEnvironment()
ExternalEnvironmentInstaller
getInstalledEnvironment
in class ExternalEnvironmentInstaller
public void run()
public void runConda(String... args)
args
- argumentsprotected void postprocessInstall()
public Path getCondaExecutableInInstallationPath()
protected SelectCondaEnvPythonInstaller.Configuration generateCondaConfig()
protected void install(Path installerPath)
installerPath
- the setupprotected Path download()
protected boolean configure()
public JIPipeProgressInfo getProgressInfo()
JIPipeRunnable
public void setProgressInfo(JIPipeProgressInfo progressInfo)
JIPipeRunnable
progressInfo
- the info objectpublic BasicMinicondaEnvPythonInstaller.Configuration getConfiguration()
public void setConfiguration(BasicMinicondaEnvPythonInstaller.Configuration configuration)
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.