SNAP: replace lxml versions to be compatible with Beremiz.
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Sat, 13 Aug 2022 15:51:59 +0200
changeset 86 3564991cd359
parent 85 63af88f62324
child 87 3682a91e7bb2
SNAP: replace lxml versions to be compatible with Beremiz.

Forcing ubuntu20 python-lxml (4.5.0) package instead of PIP vesrion (4.9.1).
4.9.1 leads to derived variable types to appear as "derived" instead of real type name.
Problem happens with plcopen/variables_infos.ysl2 and plcopen/VariableInfoCollector.py.
No clue for now about what really breaks.
snap/snapcraft.yaml
--- a/snap/snapcraft.yaml	Fri Aug 12 13:44:20 2022 +0200
+++ b/snap/snapcraft.yaml	Sat Aug 13 15:51:59 2022 +0200
@@ -33,6 +33,7 @@
     stage-packages:
       - python2
       - python-setuptools
+      - python-lxml
 
     override-build: |
       # For some reasons site-packages needs to be created and 
@@ -44,7 +45,6 @@
             install --prefix $SNAPCRAFT_PART_INSTALL/usr
       PYTHONPATH=$SNAPCRAFT_PART_INSTALL/usr/lib/python2.7/site-packages \
         $SNAPCRAFT_PART_INSTALL/usr/bin/pip install \
-          lxml                \
           future              \
           matplotlib          \
           msgpack_python      \
@@ -156,3 +156,4 @@
     environment:
       SYSROOT: $SNAP
     command: usr/bin/python2 $SNAP/beremiz/Beremiz_service.py
+