$NetBSD: patch-ao,v 1.1.1.1 2011/02/22 08:52:01 obache Exp $ --- Lib/distutils/util.py.orig 2010-05-05 19:09:31.000000000 +0000 +++ Lib/distutils/util.py @@ -177,6 +177,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)