I'm afraid I'm no distutils expert either and I'd prefer to test this before signing off GTM. But based on your explanation the result seems correct.  I'll do some tests of the various intall methods to try validate the error you saw and then to validate this change.  It might take a little longer than I'd like I'm afraid.