dpkg-buildpackage sets several environment variables to allow the debian packaging system to globally configure build options without requiring manual intervention in the debian/rules files. However, Python's distutils is notoriously fickle when it comes to manipulating environment variables governing builds -- typically the exact compiler commands necessary to compile extension are those given when configuring Python itself, and distutils does this. This patch unsets the environment variables set by dpkg-buildpackage (as set by Ubuntu Hardy). This fixes an issue with stdeb building packages using f2py.
I previously misinterpreted the description of the --install-layout=deb option. It turns out one cannot use this option with older Ubuntu versions. This patch reverts to the old behavior for Python 2.4 and 2.5 but otherwise uses the new behavior. Ideally, the test would actually test whether the --install-layout=deb option exists, but this works for now. Still need to test on debian -- I don't know if their Python 2.6 has this option.
…t=deb Ubuntu Jaunty's Python 2.6 adds a new distutils install command option, --install-layout=deb. This patch calls the new option, which is a no-op on Ubuntu's Python 2.4 and 2.5, so this should not break older code. Additionally, installed .so files are now in dist-packages instead of site-packages, and this is handled. See https://lists.ubuntu.com/archives/ubuntu-devel/2009-February/027439.html
…en when version information not specified
adds the ignore-install-requires command line option to keep stdeb from guessing python packages names from requires.txt and lets you specify your own Depends: without adding those from the egg requires.txt....