From bbb0ab9101165997df41f64c79b3a75d6f852136 Mon Sep 17 00:00:00 2001 From: hugovk Date: Thu, 12 Jan 2017 21:28:24 +0200 Subject: [PATCH] Fix invalid string escapes --- winbuild/build.py | 2 +- winbuild/build_dep.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/winbuild/build.py b/winbuild/build.py index 487977adb..1fbfa14a6 100644 --- a/winbuild/build.py +++ b/winbuild/build.py @@ -16,7 +16,7 @@ def setup_vms(): for arch in ('', X64_EXT): ret.append("virtualenv -p c:/Python%s%s/python.exe --clear %s%s%s" % (py, arch, VIRT_BASE, py, arch)) - ret.append("%s%s%s\Scripts\pip.exe install nose" % + ret.append(r"%s%s%s\Scripts\pip.exe install nose" % (VIRT_BASE, py, arch)) return "\n".join(ret) diff --git a/winbuild/build_dep.py b/winbuild/build_dep.py index 4c397236b..fb4d55d8c 100644 --- a/winbuild/build_dep.py +++ b/winbuild/build_dep.py @@ -13,6 +13,7 @@ def _relpath(*args): def _relbuild(*args): return _relpath('build', *args) + build_dir = _relpath('build') inc_dir = _relpath('depends') @@ -108,7 +109,7 @@ set MSBUILD=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe set CMAKE="cmake.exe" set INCLIB=%~dp0\depends set BUILD=%~dp0\build -""" + "\n".join('set %s=%%BUILD%%\%s' % (k.upper(), v['dir']) +""" + "\n".join(r'set %s=%%BUILD%%\%s' % (k.upper(), v['dir']) for (k, v) in libs.items() if v['dir'])