$NetBSD: patch-ao,v 1.3 2012/04/13 18:47:31 adam Exp $ --- Lib/distutils/util.py.orig 2011-06-11 15:46:24.000000000 +0000 +++ Lib/distutils/util.py @@ -181,6 +181,8 @@ def get_platform (): # See 'i386' case if sys.maxint >= 2**32: machine = 'ppc64' + elif osname[:9] == "dragonfly": + release = str.split(release, "-")[0] return "%s-%s-%s" % (osname, release, machine)