Using trunk code r157, running snapcraft from the examples/py2-project directory returns this on wily:
[...]
Building spongeshaker
python2 setup.py install --install-layout=deb --prefix=/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/spongeshaker/install/usr
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/test.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/sponge.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/stream_cipher.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/sha3.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/prng.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/spongewrap.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/hashing.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/__init__.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/util.py -> build/lib.linux-x86_64-2.7/spongeshaker
running build_ext
building 'spongeshaker.keccak' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/include -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/usr/include -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/include/x86_64-linux-gnu -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/usr/include/x86_64-linux-gnu -fPIC -I/usr/include/python2.7 -c src/keccak.c -o build/temp.linux-x86_64-2.7/src/keccak.o
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/include -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/usr/include -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/include/x86_64-linux-gnu -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/usr/include/x86_64-linux-gnu -fPIC -I/usr/include/python2.7 -c src/pykeccak.c -o build/temp.linux-x86_64-2.7/src/pykeccak.o
src/pykeccak.c:20:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Failed doing build for spongeshaker!
Thanks!
This seems to be fixed now.