Package io.github.cdklabs.projen.python
Class Venv
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- io.github.cdklabs.projen.Component
-
- io.github.cdklabs.projen.python.Venv
-
- All Implemented Interfaces:
IPythonEnv,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:43.247Z") @Stability(Experimental) public class Venv extends Component implements IPythonEnv
(experimental) Manages a virtual environment through the Python venv module.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVenv.Builder(experimental) A fluent builder forVenv.-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
-
Nested classes/interfaces inherited from interface io.github.cdklabs.projen.python.IPythonEnv
IPythonEnv.Jsii$Default, IPythonEnv.Jsii$Proxy
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetupEnvironment()(experimental) Initializes the virtual environment if it doesn't exist (called during post-synthesis).-
Methods inherited from class io.github.cdklabs.projen.Component
getProject, isComponent, postSynthesize, preSynthesize, synthesize
-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
Venv
protected Venv(software.amazon.jsii.JsiiObjectRef objRef)
-
Venv
protected Venv(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
Venv
@Stability(Experimental) public Venv(@NotNull Project project, @Nullable VenvOptions options)- Parameters:
project- This parameter is required.options-
-
Venv
@Stability(Experimental) public Venv(@NotNull Project project)- Parameters:
project- This parameter is required.
-
-
Method Detail
-
setupEnvironment
@Stability(Experimental) public void setupEnvironment()
(experimental) Initializes the virtual environment if it doesn't exist (called during post-synthesis).- Specified by:
setupEnvironmentin interfaceIPythonEnv
-
-