LP 799718: Pass the DESTDIR variable to setup.py
authorBen Webb <bjwebb67@googlemail.com>
Mon, 25 Jul 2011 20:40:40 +0000 (21:40 +0100)
committerDan Scott <dan@coffeecode.net>
Tue, 16 Aug 2011 13:26:28 +0000 (09:26 -0400)
commitf9648c10fb745f366d0181b96bb60a3a79bb972a
tree3593ff5e5f95bffeb6cf2811cafb6c6b1490a0cb
parentba3ca0546553e756af81c921f7ceb50738e76aa7
LP 799718: Pass the DESTDIR variable to setup.py

This allows python modules to be built when creating packages.

Per comment from Dan Scott on the LP bug:

http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html#tag_03_266
says "Multiple successive slashes are considered to be the same as one
slash." so in theory "--root=$(DESTDIR)/" should be just as safe as
"--root=$(DESTDIR)///", but why not go the distance and use 3 slashes to
avoid any possibility of some oddball POSIX implementation that treats 2
slashes differently for some reason?

Signed-off-by: Ben Webb <bjwebb67@googlemail.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
src/python/Makefile.am