$NetBSD: patch-ao,v 1.1.1.1 2011/02/22 08:52:01 obache Exp $

--- Lib/distutils/util.py.orig	2011-06-11 15:46:24.000000000 +0000
+++ Lib/distutils/util.py
@@ -176,6 +176,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)
 
