I'm trying to build Bazaar using 'python-build-system'. Bazaar requires Zlib (from Python) and I fail to find out how to build Python with Zlib. It should be possible to import it like so: # python >>> import zlib According to this [1], Zlib can be located here: [...]/lib/python2.7/lib-dynload/zlib.so 'configure' doesn't have anything related too. [1] http://stackoverflow.com/a/9727418