Pip commands execution utility. Use Python internally.
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
USER |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
exec(java.lang.String cmd)Execute command on pip module. |
|
Python |
getPython()May be used to change default configurations. |
|
java.lang.String |
getVersion()@return pip version string (minor.major.micro) |
|
java.lang.String |
getVersionLine()@return pip --version output |
<T> |
T |
inGlobalScope(groovy.lang.Closure closure)Execute pip methods within closure in global scope (no matter if user scope configured). |
|
void |
install(java.lang.String module)Install module. |
|
boolean |
isInstalled(java.lang.String module)@param module module to check |
|
java.lang.String |
readOutput(java.lang.String cmd)Calls pip command and return output as string. |
|
void |
uninstall(java.lang.String module)Uninstall module. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Execute command on pip module. E.g. 'install some==12.3'.
cmd - pip command to executeMay be used to change default configurations.
Execute pip methods within closure in global scope (no matter if user scope configured).
closure - closure with pip actions to be executed in global scopeInstall module.
module - module name with version (e.g. 'some==12.3')
module - module to checkCalls pip command and return output as string. Preferred way instead of direct python usage to correctly apply --user flag for commands.
cmd - pip command to callUninstall module.
module - module name