def get_build_platform():
from sysconfig import get_platform<EOL>plat = get_platform()<EOL>if sys.platform == "<STR_LIT>" and not plat.startswith('<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>version = _macosx_vers()<EOL>machine = os.uname()[<NUM_LIT:4>].replace("<STR_LIT:U+0020>", "<STR_LIT:_>")<EOL>return "<STR_LIT>" % (<EOL>int(version[<NUM_LIT:0>]), int(version[<NUM_LIT:1>]),<EOL>_macosx_arch(machine),<EOL>)<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return plat<EOL>
Return this platform's string for platform-specific distributions

    XXX Currently this is the same as ``distutils.util.get_platform()``, but it
    needs some hacks for Linux and Mac OS X.