← Back to issue list

can't build python part with C modules

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1802345
Type
issue
State
open
Author
~ack
Labels
Created
2018-11-08 17:13:24.733830+00:00
Updated
2019-07-04 13:58:44.740519+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

Building python packages that have C modules fails with snapcraft as C headers are not found. This is a sample snap that fails building on Bionic: name: test version: '1.0' summary: test description: test grade: stable confinement: strict base: core18 apps:   uwsgi:     command: uwsgi parts:   uwsgi:     plugin: python     source: .     python-packages:       - uWSGI     build-packages:       - python3-dev     stage-packages:       - libpython3.6 exporting C_INCLUDE_PATH=/usr/include/python3.6 makes it work. Tested with both stable (2.43.1) and candidate (3.0) snaps. Also, removing the core18 base and using libpython3.5 when building on xenial shows the same issue

Evaluation history

No evaluation history available.