Merge ~sylvain-pineau/checkbox-core-snap:add-C_INCLUDE_PATH-pybluez-20 into checkbox-core-snap:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: d0f715937af44d111962f55d874a0623272336dc
Merged at revision: db4b3c8273e4a040d4f06c9a19412493cc7a7ca4
Proposed branch: ~sylvain-pineau/checkbox-core-snap:add-C_INCLUDE_PATH-pybluez-20
Merge into: checkbox-core-snap:master
Diff against target: 12 lines (+1/-0)
1 file modified
snap/snapcraft.yaml (+1/-0)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Review via email: mp+402972@code.launchpad.net

Description of the change

Ugly patch to fix the following pybluez build error with base20:

    In file included from bluez/btmodule.c:20:
    bluez/btmodule.h:4:10: fatal error: Python.h: No such file or directory
        4 | #include "Python.h"
          |

Note: Must be reverted for s16/s18 which don't cause problems

To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

self-approved

review: Approve

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 bb27fd6..6904ff5 100644
3--- a/snap/snapcraft.yaml
4+++ b/snap/snapcraft.yaml
5@@ -161,6 +161,7 @@ parts:
6 - -**/RECORD
7 - -**/__pycache__
8 build-environment:
9+ - C_INCLUDE_PATH: /usr/include/python3.8
10 - PYTHONPATH: $SNAPCRAFT_PART_INSTALL/usr/lib/python3/dist-packages:$PYTHONPATH
11 override-stage: |
12 snapcraftctl stage

Subscribers

People subscribed via source and target branches