code: def fix_lib64(lib_dir):
      
      if [p for p in distutils.sysconfig.get_config_vars().values()
          if isinstance(p, basestring) and 'lib64' in p]:
          logger.debug('This system uses lib64; symlinking lib64 to lib')
          assert os.path.basename(lib_dir) == 'python%s' % sys.version[:3], (
              "Unexpected python lib dir: %r" % lib_dir)
          lib_parent = os.path.dirname(lib_dir)
          assert os.path.basename(lib_parent) == 'lib', (
              "Unexpected parent dir: %r" % lib_parent)
          copyfile(lib_parent, os.path.join(os.path.dirname(lib_parent), 'lib64'))
docs: Some platforms (particularly Gentoo on x64) put things in lib64/pythonX.Y
      instead of lib/pythonX.Y.  If this is such a platform we'll just create a
      symlink so lib64 points to lib