$NetBSD: patch-ao,v 1.2 2007/06/08 14:16:16 wiz Exp $

--- Lib/distutils/util.py.orig	2006-10-08 17:41:25.000000000 +0000
+++ Lib/distutils/util.py
@@ -116,6 +116,8 @@ def get_platform ():
             elif machine in ('PowerPC', 'Power_Macintosh'):
                 # Pick a sane name for the PPC architecture
                 machine = 'ppc'
+    elif osname[:9] == "dragonfly":
+        release = string.split(release, "-")[0]
 
     return "%s-%s-%s" % (osname, release, machine)
 
