|
@@ -17,6 +17,9 @@ type LocalPluginRuntime struct {
|
|
// python interpreter path, currently only support python
|
|
// python interpreter path, currently only support python
|
|
pythonInterpreterPath string
|
|
pythonInterpreterPath string
|
|
|
|
|
|
|
|
+ // python env init timeout
|
|
|
|
+ pythonEnvInitTimeout int
|
|
|
|
+
|
|
// to create a new python virtual environment, we need a default python interpreter
|
|
// to create a new python virtual environment, we need a default python interpreter
|
|
// by using its venv module
|
|
// by using its venv module
|
|
defaultPythonInterpreterPath string
|
|
defaultPythonInterpreterPath string
|
|
@@ -30,8 +33,10 @@ type LocalPluginRuntime struct {
|
|
|
|
|
|
func NewLocalPluginRuntime(
|
|
func NewLocalPluginRuntime(
|
|
pythonInterpreterPath string,
|
|
pythonInterpreterPath string,
|
|
|
|
+ pythonEnvInitTimeout int,
|
|
) *LocalPluginRuntime {
|
|
) *LocalPluginRuntime {
|
|
return &LocalPluginRuntime{
|
|
return &LocalPluginRuntime{
|
|
defaultPythonInterpreterPath: pythonInterpreterPath,
|
|
defaultPythonInterpreterPath: pythonInterpreterPath,
|
|
|
|
+ pythonEnvInitTimeout: pythonEnvInitTimeout,
|
|
}
|
|
}
|
|
}
|
|
}
|