@platforma-sdk/workflow-tengo 4.4.4 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tengo/lib/exec.internal.lib.tengo +12 -7
- package/dist/tengo/lib/exec.python.lib.tengo +9 -0
- package/dist/tengo/tpl/check_network.create_workdir_from_storage.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.download_blob.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.run_hello_world.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.run_hello_world_py.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.upload_blob.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.upload_template.plj.gz +0 -0
- package/dist/tengo/tpl/exec.R.create-renv.plj.gz +0 -0
- package/dist/tengo/tpl/exec.exec.plj.gz +0 -0
- package/dist/tengo/tpl/exec.monetization_info.plj.gz +0 -0
- package/dist/tengo/tpl/exec.monetization_to_json.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.create-venv.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.install-deps.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.venv-bin-path.plj.gz +0 -0
- package/dist/tengo/tpl/ll.get-field.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-multiple-pcolumns.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-pframe-for-ui.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-pframe.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-single-pcolumn.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.import-dir.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.process-pcolumn-data.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.remove-nulls.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.slice-data.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-export-pframe.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-import-if-not-null.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-import-map.plj.gz +0 -0
- package/dist/tengo/tpl/waiter.waiter.plj.gz +0 -0
- package/dist/tengo/tpl/workdir.save.plj.gz +0 -0
- package/dist/tengo/tpl/workflow.build-ctx.plj.gz +0 -0
- package/dist/tengo/tpl/workflow.query-anchored.plj.gz +0 -0
- package/package.json +1 -1
|
@@ -25,11 +25,15 @@ validation := import("@platforma-sdk/workflow-tengo:validation")
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
_ARG_VAR_PKG
|
|
29
|
-
_ARG_VAR_JAVA
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
_ARG_VAR_PKG := "pkg" // abs path to software package
|
|
29
|
+
_ARG_VAR_JAVA := "java" // abs path to 'java' run environment
|
|
30
|
+
|
|
31
|
+
_ARG_VAR_PYTHON_VENV := "python" // abs path to python virtual environment. WARNING: not change the name, it's used in other part of code
|
|
32
|
+
_ARG_VAR_PYTHON_RUN_ENV := "python_run_env" // abs path to python run environment used to create venv
|
|
33
|
+
_ARG_VAR_VENV_BIN_DIR := "venv_bin_dir" // name of bin dir in python venv depending on OS type (Scripts on Windows, bin on Unix)
|
|
34
|
+
_ARG_PYTHON_LOCAL_SCRIPT_DIR := "python_local_script_dir" // abs path to directory with local python scripts.
|
|
35
|
+
_ARG_PATH_DELIMETER := "path_delimeter"
|
|
36
|
+
|
|
33
37
|
_ARG_VAR_R := "R" // abs path to 'R' run environment runtime
|
|
34
38
|
_ARG_VAR_R_VENV := "rVenv" // abs path to 'R' portable virtual environment
|
|
35
39
|
_ARG_VAR_MNZ := "monetization" // monetization env value
|
|
@@ -133,15 +137,16 @@ _loadPythonRunEnvironment := func(operationMode, descriptor, softName, softPkg)
|
|
|
133
137
|
pythonRefVar := _newRefVar(_ARG_VAR_PYTHON_RUN_ENV, softName+"/python", venv.python())
|
|
134
138
|
pythonVenvRefVar := _newRefVar(_ARG_VAR_PYTHON_VENV, softName + "/venv", venv.venv())
|
|
135
139
|
venvBinDirRefVar := _newRefVar(_ARG_VAR_VENV_BIN_DIR, softName + "/binDir", venv.binDir() )
|
|
140
|
+
pathDelimeterRefVar := _newRefVar(_ARG_PATH_DELIMETER, softName + "/pathDelimeter", venv.pathDelimeter())
|
|
136
141
|
|
|
137
142
|
return ll.toStrict({
|
|
138
143
|
runEnvType: "python",
|
|
139
144
|
|
|
140
|
-
variables: [ pythonRefVar, pythonVenvRefVar, venvBinDirRefVar ],
|
|
145
|
+
variables: [ pythonRefVar, pythonVenvRefVar, venvBinDirRefVar, pathDelimeterRefVar ],
|
|
141
146
|
customPaths: [ _newArg(false, path.join(_expr(_ARG_VAR_PYTHON_VENV), "venv", _expr(_ARG_VAR_VENV_BIN_DIR))) ],
|
|
142
147
|
envs: {
|
|
143
148
|
"VIRTUAL_ENV": _newArg(false, path.join(_expr(_ARG_VAR_PYTHON_VENV), "venv")),
|
|
144
|
-
"PYTHONPATH": _newArg(false, path.join(_expr(_ARG_VAR_PYTHON_RUN_ENV), descriptor.runEnv.binDir, "python_stdlib"))
|
|
149
|
+
"PYTHONPATH": _newArg(false, path.join(_expr(_ARG_VAR_PYTHON_RUN_ENV), descriptor.runEnv.binDir, "python_stdlib") + _expr(_ARG_PATH_DELIMETER) + _expr(_ARG_VAR_PKG))
|
|
145
150
|
}
|
|
146
151
|
})
|
|
147
152
|
}
|
|
@@ -13,6 +13,7 @@ desc := import("@platforma-sdk/workflow-tengo:exec.descriptor")
|
|
|
13
13
|
|
|
14
14
|
_OUTPUT_RUN_ENV := "runEnv"
|
|
15
15
|
_OUTPUT_BIN_DIR := "binDir"
|
|
16
|
+
_OUTPUT_OS_DELIMETER := "osPathDelimeter"
|
|
16
17
|
|
|
17
18
|
createVenvTpl := assets.importTemplate("@platforma-sdk/workflow-tengo:exec.python.create-venv")
|
|
18
19
|
|
|
@@ -167,6 +168,14 @@ pythonVenvBuilder := func() {
|
|
|
167
168
|
|
|
168
169
|
|
|
169
170
|
|
|
171
|
+
pathDelimeter: func(){
|
|
172
|
+
return tpl.output(_OUTPUT_OS_DELIMETER, cache)
|
|
173
|
+
},
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
170
179
|
|
|
171
180
|
venv: func() {
|
|
172
181
|
return tpl.output(_OUTPUT_RUN_ENV, cache)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|