public class BasicPortableEnvPythonInstaller extends ExternalEnvironmentInstaller
Modifier and Type | Class and Description |
---|---|
static class |
BasicPortableEnvPythonInstaller.Configuration |
Constructor and Description |
---|
BasicPortableEnvPythonInstaller(JIPipeWorkbench workbench,
JIPipeParameterAccess parameterAccess) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
configure()
UI configuration
|
protected Path |
downloadPythonArchive()
Downloads the archive
|
protected void |
extractPythonArchive(Path archivePath)
Installs Miniconda
|
BasicPortableEnvPythonInstaller.Configuration |
getConfiguration() |
PythonEnvironment |
getInstalledEnvironment()
Returns the final environment after installation
|
static String |
getLatestDownload()
Gets the latest download link for Miniconda
|
JIPipeProgressInfo |
getProgressInfo()
The info object that allows communication with the run
|
Path |
getPythonExecutable() |
String |
getTaskLabel()
A name for the runnable
|
protected void |
postprocessInstall()
Applies postprocessing for the installation
|
void |
run() |
protected void |
runPip(String... args) |
void |
setConfiguration(BasicPortableEnvPythonInstaller.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 BasicPortableEnvPythonInstaller(JIPipeWorkbench workbench, JIPipeParameterAccess parameterAccess)
workbench
- the workbenchparameterAccess
- the parameter access that will receive the generated environmentpublic static String getLatestDownload()
public String getTaskLabel()
JIPipeRunnable
public PythonEnvironment getInstalledEnvironment()
ExternalEnvironmentInstaller
getInstalledEnvironment
in class ExternalEnvironmentInstaller
public void run()
public Path getPythonExecutable()
protected void runPip(String... args)
protected void postprocessInstall()
protected void extractPythonArchive(Path archivePath)
archivePath
- the setupprotected Path downloadPythonArchive()
protected boolean configure()
public JIPipeProgressInfo getProgressInfo()
JIPipeRunnable
public void setProgressInfo(JIPipeProgressInfo progressInfo)
JIPipeRunnable
progressInfo
- the info objectpublic BasicPortableEnvPythonInstaller.Configuration getConfiguration()
public void setConfiguration(BasicPortableEnvPythonInstaller.Configuration configuration)
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.