]> git.donarmstrong.com Git - debhelper.git/commit
Fix build directory handling in python_distutils build system.
authorModestas Vainius <modestas@vainius.eu>
Mon, 15 Jun 2009 12:58:31 +0000 (15:58 +0300)
committerModestas Vainius <modestas@vainius.eu>
Mon, 15 Jun 2009 12:58:31 +0000 (15:58 +0300)
commitfe3de315ed7ce24c49756af4ebdaa6b88f86a12d
tree613a15c7cda3d8462785ec3237d2beda52974ebd
parent68c7c4c23cc9de4243e54b90ee902d9f9bf00bac
Fix build directory handling in python_distutils build system.

* Apparently, Distutils does out of source tree building by default.
* Default build directory is "$srcdir/build".
* --build-base command line option is ineffective (some even fail)
  unless it is passed to the "build" command. However, if build-base is set in
  the config file, all setup.py commands use it (build, install and clean).
  That's a big flaw in Distutils design but it has been like this for a long
  time. Therefore write a custom distutils cfg file in the build directory
  to make build-base work. The best choice for config file path is
  $HOME/.pydistutils.cfg (one of the paths Distutils reads) and setting $HOME
  to the build directory.

Signed-off-by: Modestas Vainius <modestas@vainius.eu>
Debian/Debhelper/Buildsystem/python_distutils.pm