Commit a3c755c1 authored by Georg Brandl's avatar Georg Brandl

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

since this value is used to name the build directory.
parent aca28c3c
......@@ -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 --
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment