From a0b15e84d73d8e0722866af6cde916c648f06942 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 27 Jan 2019 11:38:33 +0200 Subject: [PATCH] Fix Flake8 --- winbuild/build_dep.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/winbuild/build_dep.py b/winbuild/build_dep.py index bc23e37e7..99a07156a 100644 --- a/winbuild/build_dep.py +++ b/winbuild/build_dep.py @@ -258,15 +258,16 @@ copy /Y /B %%LCMS%%\Lib\MS\*.lib %%INCLIB%% endlocal """ % compiler # noqa: E501 + def build_ghostscript(compiler, bit): script = r""" rem Build gs setlocal """ + vc_setup(compiler, bit) + r""" set MSVC_VERSION=""" + { - "2008": "9", - "2015": "14" -}[compiler['vc_version']] + r""" + "2008": "9", + "2015": "14" + }[compiler['vc_version']] + r""" set RCOMP="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\RC.Exe" cd /D %%GHOSTSCRIPT%% """ @@ -281,6 +282,7 @@ endlocal """ return script % compiler # noqa: E501 + def add_compiler(compiler, bit): script.append(setup_compiler(compiler)) script.append(nmake_libs(compiler, bit))