From b669d34073ebdb164a3f3b987ff08da9f7cc4435 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 20 Apr 2011 20:36:35 +0200 Subject: [PATCH] Fix error path in platform name detection. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9b479a17..29090b7d 100755 --- a/setup.py +++ b/setup.py @@ -442,7 +442,7 @@ elif os.name == 'nt': progvar = "%ProgramFiles%" architecture = "x86" else: - raise ValueError("Unsupported %PLATNAME% variable value %r" % platform) + raise ValueError("Unsupported %%PLATNAME%% variable value %r" % platform) attrs = (os.path.expandvars(progvar), architecture) crtdir = r'%s\Microsoft Visual Studio 9.0\VC\redist\%s\Microsoft.VC90.CRT' % attrs data_files.append(('Microsoft.VC90.CRT', glob.glob(r'%s\*.*' % crtdir)))