From 0f45a078a3fc17d7e7e0f798b0e3352e10f9dcd9 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 28 Apr 2006 16:58:52 +0000 Subject: [PATCH] Bug #1478326: don't allow '/' in distutils.util.get_platform machine names since this value is used to name the build directory. --- Lib/distutils/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 387e9bdc93..061092b673 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -45,6 +45,7 @@ def get_platform (): osname = string.lower(osname) osname = string.replace(osname, '/', '') machine = string.replace(machine, ' ', '_') + machine = string.replace(machine, '/', '-') if osname[:5] == "linux": # At least on Linux/Intel, 'machine' is the processor -- -- 2.40.0