2024-09-13 14:25:32 +02:00
2024-09-13 14:08:18 +02:00
2024-09-13 14:06:03 +02:00
2024-09-13 14:25:32 +02:00

venv for ecmccfg

This dir contains a python venv (.venv) that is needed for ecmccfg when using yaml files (motion or plc cfgs).

ll -a
total 24
drwxrwsr-x. 4 sandst_a unx-sls_ioc 4096 Sep 13 14:13 .
drwxrwsrwx. 6 anicic   unx-sls_ioc 4096 Sep 13 14:16 ..
drwxr-sr-x. 8 sandst_a unx-sls_ioc 4096 Sep 13 14:16 .git
-rwxrwxr-x. 1 sandst_a unx-sls_ioc  337 Sep 13 14:13 pythonVenv.sh
-rw-rw-r--. 1 sandst_a unx-sls_ioc  910 Sep 13 14:13 readme.md
drwxrwsr-x. 6 sandst_a unx-sls_ioc 4096 Sep 13 14:13 .venv

Use

The venv is copied to the ecmc-server /tmp dir at boot, see: https://git.psi.ch/motion/ecmc_server_cfg/-/blob/master/AutoStart/S10-ecmc-python-venv?ref_type=heads

Generate the venv

Use pythonVenv.sh to generate an ecmc venv in current dir (the script is copied from ecmccfg/scripts/jinja2/):

bash pythonVenv.sh -d .

Files:

[sls-lc8 ioc]$ ls -la /ioc/NeedfulThings/ecmc_python_venv/.venv
total 32
drwxrwsr-x. 7 sandst_a unx-sls_ioc 4096 May  3 16:07 .
drwxrwsr-x. 3 sandst_a unx-sls_ioc 4096 May  3 17:47 ..
drwxrwxr-x. 2 sandst_a unx-sls_ioc 4096 May  3 16:06 bin
drwxrwxr-x. 2 sandst_a unx-sls_ioc 4096 May  3 16:07 include
drwxrwsr-x. 3 sandst_a unx-sls_ioc 4096 May  3 16:06 lib
drwxrwxr-x. 3 sandst_a unx-sls_ioc 4096 May  3 16:06 lib64
-rw-rw-r--. 1 sandst_a unx-sls_ioc   69 May  3 16:07 pyvenv.cfg
drwxrwxr-x. 3 sandst_a unx-sls_ioc 4096 May  3 16:06 share
Description
No description provided
Readme 5.8 MiB
Languages
Python 99.7%
C 0.2%