def _get_lib_name(lib):
<EOL>ext_suffix = sysconfig.get_config_var("<STR_LIT>")<EOL>if not ext_suffix:<EOL><INDENT>try:<EOL><INDENT>ext_suffix = sysconfig.get_config_var("<STR_LIT>")<EOL><DEDENT>except Exception as e:<EOL><INDENT>msg = ("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % str(e))<EOL>warnings.warn(msg)<EOL>pass<EOL><DEDENT><DEDENT>if ext_suffix:<EOL><INDENT>libname = lib + ext_suffix<EOL><DEDENT>return libname<EOL>
Helper function to get an architecture and Python version specific library
filename.