$NetBSD: patch-ax,v 1.3 2012/04/13 18:47:31 adam Exp $ chop "-RELEASE" or "-DEVELOPMENT" from release for DragonFly. --- Lib/sysconfig.py.orig 2011-06-11 15:46:25.000000000 +0000 +++ Lib/sysconfig.py @@ -685,6 +685,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)