snap/snapcraft.yaml
changeset 86 3564991cd359
parent 82 90da520cbaa5
child 101 5799370243c0
equal deleted inserted replaced
85:63af88f62324 86:3564991cd359
    31       - python2-dev
    31       - python2-dev
    32 
    32 
    33     stage-packages:
    33     stage-packages:
    34       - python2
    34       - python2
    35       - python-setuptools
    35       - python-setuptools
       
    36       - python-lxml
    36 
    37 
    37     override-build: |
    38     override-build: |
    38       # For some reasons site-packages needs to be created and 
    39       # For some reasons site-packages needs to be created and 
    39       # added to PYTHONPATH during PIP (own) build.
    40       # added to PYTHONPATH during PIP (own) build.
    40       # Apparently not anymore when snap is executed.
    41       # Apparently not anymore when snap is executed.
    42       PYTHONPATH=$SNAPCRAFT_PART_INSTALL/usr/lib/python2.7/site-packages \
    43       PYTHONPATH=$SNAPCRAFT_PART_INSTALL/usr/lib/python2.7/site-packages \
    43         $SNAPCRAFT_PART_INSTALL/usr/bin/python2 $SNAPCRAFT_PART_SRC/setup.py \
    44         $SNAPCRAFT_PART_INSTALL/usr/bin/python2 $SNAPCRAFT_PART_SRC/setup.py \
    44             install --prefix $SNAPCRAFT_PART_INSTALL/usr
    45             install --prefix $SNAPCRAFT_PART_INSTALL/usr
    45       PYTHONPATH=$SNAPCRAFT_PART_INSTALL/usr/lib/python2.7/site-packages \
    46       PYTHONPATH=$SNAPCRAFT_PART_INSTALL/usr/lib/python2.7/site-packages \
    46         $SNAPCRAFT_PART_INSTALL/usr/bin/pip install \
    47         $SNAPCRAFT_PART_INSTALL/usr/bin/pip install \
    47           lxml                \
       
    48           future              \
    48           future              \
    49           matplotlib          \
    49           matplotlib          \
    50           msgpack_python      \
    50           msgpack_python      \
    51           u-msgpack-python    \
    51           u-msgpack-python    \
    52           zeroconf2           \
    52           zeroconf2           \
   154   runtime:
   154   runtime:
   155     # Standalone runtime
   155     # Standalone runtime
   156     environment:
   156     environment:
   157       SYSROOT: $SNAP
   157       SYSROOT: $SNAP
   158     command: usr/bin/python2 $SNAP/beremiz/Beremiz_service.py
   158     command: usr/bin/python2 $SNAP/beremiz/Beremiz_service.py
       
   159