Okay, last few remarks then I am done for today, I need to sleep.
1. The sip installer in your script has the same idiotic problem I struggled with: it wants to put itself outside the virtualenv. /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7. It asks for root password when it gets to that point, that's when I killed it...
2. As I only used this system for iOS development, and I only use python on linux boxes, I didn't really have any "extra" packages. Only wget was missing (in addition to swig), so it's good, no exotic dependencies.
3. the "cd sip-4.14.4.tar.gz" line must be replaced to "cd sip-4.14.4"