python projects might fail to snap if the package python-dev is not installed

Bug #1501997 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Sergio Schvezov

Bug Description

Without libpython-dev, the py2-project example fails to snap with the following error:

 src/pykeccak.c:20:20: fatal error: Python.h: Dosiero aŭ dosierujo ne ekzistas

To reproduce:

# after bug #1501977 has been fixed.
sudo apt-get remove libpython2.7-dev
bzr branch lp:snapcraft
cd snapcraft/examples/py2-project
./../../bin/snapcraft assemble

I'm not sure how to fix this, because the py3-project works without the -dev libs. So I suppose they are not always required and it might be unnecessary to put it in the build-packages of plugins/python.yaml. But maybe it doesn't hurt to be extra careful and add it in there.

Related branches

Changed in snapcraft:
milestone: none → 0.3
importance: Undecided → Medium
Changed in snapcraft:
status: New → Fix Committed
Changed in snapcraft:
assignee: nobody → Sergio Schvezov (sergiusens)
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.