waf: Replace python installation rule to allow PYTHONARCHDIR and PYTHONDIR
authorAndrew Bartlett <abartlet@samba.org>
Tue, 1 Feb 2011 03:29:35 +0000 (14:29 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 2 Feb 2011 04:21:12 +0000 (15:21 +1100)
commit38aacd7a7bc551797d8c60cc695fc4922941add9
tree613e376f2b93b78edfbd142590fef24d08d88d7d
parent5d4dc6cbd5e0a77687dc279ff6d3955b2b02f9ca
waf: Replace python installation rule to allow PYTHONARCHDIR and PYTHONDIR

The old rule could only substitute one part of one line, but we need
to add a second line to handle when PYTHONDIR and PYTHONARCHDIR do not
match.

This also avoids shelling out to sed with a regex, which was difficult
to read.

Andrew Bartlett
buildtools/wafsamba/wafsamba.py