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

chop "-RELEASE" or "-DEVELOPMENT" from release for DragonFly.

--- Lib/sysconfig.py.orig	2011-06-11 15:46:25.000000000 +0000
+++ Lib/sysconfig.py
@@ -679,6 +679,8 @@ def get_platform():
                     machine = 'ppc64'
                 else:
                     machine = 'ppc'
+    elif osname[:9] == "dragonfly":
+        release = str.split(release, '-')[0]
 
     return "%s-%s-%s" % (osname, release, machine)
 
