Hi, I am trying to build Python on HP-UXiv3. HP-UX also keeps libs in /usr/lib/hpux64 and /usr/lib/hpux32. I have attached a patch for searching these folders. ---- The patch is against the latest version of cpython. I have tests the change on Python 2.5.6. Cheers, Adi
Hello Adi, Thanks for your patch. Just a detail: """ if platform == 'hp-ux11': lib_dirs += ['/usr/lib/hpux64', '/usr/lib/hpux32'] """ Wouldn't it be more robust as: """ if platform.startswith('hp-ux'): lib_dirs += ['/usr/lib/hpux64', '/usr/lib/hpux32'] """ So that it works with older and (potenttially) future HP-UX releases?
Hi, startswith('hp-ux') should also work as in real world it should be synonym with hp-ux11 ... see my reasoning below I used 'hp-ux11' since this was the system I have access to and can test and I was not brave enought to assume that the patch will work on future or past version. According to wikipedia HP-UX 11.00 was relesed in 1997... and I see a trend to change the minor version number . Latest is 11.31 released in 2007... HPUX 10 is from 1995 and I am not sure if Python will work at all on such a system. As a side node, i think that HPUX will slowly die and we will not see an HP-UX 12. Cheers, Adi