diff -r 91f161335689 setup.py --- a/setup.py Wed Apr 11 16:49:40 2012 -0400 +++ b/setup.py Fri Apr 13 00:21:54 2012 +0300 @@ -464,6 +464,15 @@ if platform in ['osf1', 'unixware7', 'openunix8']: lib_dirs += ['/usr/ccs/lib'] + # HP-UX keeps files in lib/hpux folders. + if platform == 'hp-ux11': + for hpux_path in [ + '/usr/lib/hpux64', '/usr/lib/hpux32', + '/usr/local/lib/hpux64', '/usr/local/lib/hpux32', + ]: + lib_dirs += hpux_path + add_dir_to_list(self.compiler.library_dirs, hpux_path) + if platform == 'darwin': # This should work on any unixy platform ;-) # If the user has bothered specifying additional -I and -L flags