Merge pull request #3510 from blink1073/fix-setupext

BLD : improve setupext.py on windows