Pip commands execution utility. Use Python internally.
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
PIP_NAME |
| Constructor and description |
|---|
Virtualenv
(org.gradle.api.Project project, java.lang.String path) |
Virtualenv
(org.gradle.api.Project project, java.lang.String pythonPath, java.lang.String binary, java.lang.String path)Create virtualenv utility. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
create(boolean copy = false)Create virtualenv with setuptools and pip. |
|
void |
create(boolean setuptools, boolean pip, boolean copy = false)Create virtualenv. |
|
void |
createPythonOnly(boolean copy = false)Create the lightest env without setuptools and pip. |
|
boolean |
exists()@return true if virtualenv exists |
|
java.lang.String |
getPythonPath()@return python path to use for environment |
|
java.lang.String |
getVersion()@return virtualenv version (major.minor.micro) |
| 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() |
Create virtualenv utility.
project - gradle project instancepythonPath - python path (null to use global)binary - python binary name (null to use default python3 or python)path - environment path relative to project Create virtualenv with setuptools and pip. Do nothing if already exists.
To copy environment instead of symlinking, use copy ( true ) otherwise don't specify parameter.
Create virtualenv. Do nothing if already exists.
To copy environment instead if symlinking, use copy ( ? , ? , true ) otherwise omit last parameter.
setuptools - do not install setuptools (--no-setuptools)pip - do not install pip and wheel (--no-pip --no-wheel)copy - copy virtualenv instead if symlink (--always-copy) Create the lightest env without setuptools and pip. Do nothing if already exists.
To copy environment instead of symlinking, use copy ( true ) otherwise don't specify parameter.
Groovy Documentation