Merge ~pwlars/checkbox-core-snap:support-new-eddystone-series20 into checkbox-core-snap:master

Proposed by Paul Larson
Status: Rejected
Rejected by: Paul Larson
Proposed branch: ~pwlars/checkbox-core-snap:support-new-eddystone-series20
Merge into: checkbox-core-snap:master
Diff against target: 17 lines (+4/-0)
1 file modified
snap/snapcraft.yaml (+4/-0)
Reviewer Review Type Date Requested Status
Paul Larson Disapprove
Jonathan Cave (community) Needs Fixing
Review via email: mp+400483@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Jonathan Cave (jocave) wrote :

I'm a little surprised that -dev packages would be needed at runtime, they make me think header files etc.

Is it possible they are needed just during the pip install process to build something? If so those packages might be more appropriately included in `build-packages`.

Revision history for this message
Jonathan Cave (jocave) wrote :

So I've tried out some alternative specifications for checkbox-support and (at least for checkbox20) I think this is preferable as having the -dev debs in stage-packages is quite a bump to the snap size:

diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index b25870f..00976e3 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -132,6 +132,9 @@ parts:
     source-depth: 1
     plugin: python
     source: git://git.launchpad.net/checkbox-support
+ build-packages:
+ - libbluetooth-dev
+ - python3-dev
     stage-packages:
       # actual requirements
       - python3-requests-unixsocket
@@ -148,8 +151,7 @@ parts:
       - python3-distutils
       - python3-pkg-resources
       - python3.8-minimal
- - libbluetooth-dev
- - python3-dev
+ - libbluetooth3
     python-packages:
       - pynmea2
       - pybluez
@@ -162,6 +164,7 @@ parts:
       - -**/__pycache__
     build-environment:
       - PYTHONPATH: $SNAPCRAFT_PART_INSTALL/usr/lib/python3/dist-packages:$PYTHONPATH
+ - CFLAGS: -I/usr/include/python3.*
     override-stage: |
       snapcraftctl stage
       sed -i 's|except OSError: # Command not found|except subprocess.CalledProcessError: # Command not found|g' lib/python3.*/site-packages/distro.py

Revision history for this message
Jonathan Cave (jocave) wrote :

Oh some weird formatting but hopefully that helps ^

review: Needs Fixing
Revision history for this message
Paul Larson (pwlars) wrote :

This has been replaced by a newer one, which is hopefully better

review: Disapprove

Unmerged commits

c642aea... by Paul Larson

Add support for the updated eddystone test in checkbox-support

5a3e185... by Jonathan Cave

TEMP: use working acpi-tools tag

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
2index a0bb950..b25870f 100644
3--- a/snap/snapcraft.yaml
4+++ b/snap/snapcraft.yaml
5@@ -148,8 +148,12 @@ parts:
6 - python3-distutils
7 - python3-pkg-resources
8 - python3.8-minimal
9+ - libbluetooth-dev
10+ - python3-dev
11 python-packages:
12 - pynmea2
13+ - pybluez
14+ - beacontools[scan]
15 after: [acpi-tools]
16 stage:
17 - -pyvenv.cfg

Subscribers

People subscribed via source and target branches