Bug #1478326: don't allow '/' in distutils.util.get_platform machine names

since this value is used to name the build directory.
This commit is contained in:
Georg Brandl 2006-04-28 16:58:52 +00:00
parent 7a3fd89994
commit 0f45a078a3
1 changed files with 1 additions and 0 deletions

View File

@ -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 --