Comment 5 for bug 1520736

Revision history for this message
Andrew Johnson (anj) wrote :

I tried building this, but it will need some changes to the code for El Capitan. The download script seemed to run fine, but then:

woz$ python2.6 build.py
Traceback (most recent call last):
  File "build.py", line 24, in <module>
    class Builder(object):
  File "build.py", line 37, in Builder
    raise Exception("Unknown version of Mac OS X.")
Exception: Unknown version of Mac OS X.

I have OS_VERSION[1] == 11. There is an llvm-gcc binary on my machine but Python 2.6 appears to have been built with clang anyway:

woz$ python2.6
Python 2.6.9 (unknown, Oct 23 2015, 18:05:10)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> print platform.mac_ver()
('10.11.3', ('', '', ''), 'x86_64')

The latest version of Xcode provides the following SDKs:

woz$ ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
MacOSX10.10.sdk/ MacOSX10.9.sdk/

With the new OS_VERSION added I then discovered that many (but not all) of the tarfiles downloaded were actually HTML error pages; download.py doesn't seem to to be checking the status code it gets back from the web-server. The files that failed to download were:
  PyQt-mac-gpl-4.10.2.tar.gz
  bzr-2.6.0.tar.gz
  bzr-colo-0.4.0.tar.gz
  dulwich-0.9.0.tar.gz
  launchpadlib-1.10.2.tar.gz
  paramiko-1.11.0.tar.gz
  pycrypto-2.6.tar.gz
  python-fastimport-0.9.2.tar.gz
  sip-4.14.7.tar.gz
  subvertpy-0.9.1.tar.gz
It is possible that some of those failures may have been due to our firewall rules, but I don't normally have trouble downloading tarfiles.

At this point I'm giving up, but I'll be willing to try again with an updated version.