From 2cd55f3194889792ae919e3fdad7e49bbe52ab3e Mon Sep 17 00:00:00 2001 From: stonebig Date: Mon, 15 Aug 2016 17:30:35 +0200 Subject: [PATCH] fix for issue 375 --- make.py | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/make.py b/make.py index cf608640..8d88d99d 100644 --- a/make.py +++ b/make.py @@ -561,24 +561,22 @@ def _create_batch_scripts_initial(self): rem ****************** rem handle R if included rem ****************** -if exist "%WINPYDIR%\..\tools\R\bin" ( - set R_HOME=%WINPYDIR%\..\tools\R - if "%WINPYARCH%"=="WIN32" ( - set R_HOMEbin=%R_HOME%\bin\i386 - ) else ( - set R_HOMEbin=%R_HOME%\bin\x64 - ) -) +if not exist "%WINPYDIR%\..\tools\R\bin" goto r_bad +set R_HOME=%WINPYDIR%\..\tools\R +if "%WINPYARCH%"=="WIN32" set R_HOMEbin=%R_HOME%\bin\i386 +if not "%WINPYARCH%"=="WIN32" set R_HOMEbin=%R_HOME%\bin\x64 +:r_bad + rem ****************** rem handle Julia if included rem ****************** -if exist "%WINPYDIR%\..\tools\Julia\bin" ( - set JULIA_HOME=%WINPYDIR%\..\tools\Julia\bin\ - set JULIA_EXE=julia.exe - set JULIA=%JULIA_HOME%%JULIA_EXE% - set JULIA_PKGDIR=%WINPYDIR%\..\settings\.julia -) +if not exist "%WINPYDIR%\..\tools\Julia\bin" goto julia_bad +set JULIA_HOME=%WINPYDIR%\..\tools\Julia\bin\ +set JULIA_EXE=julia.exe +set JULIA=%JULIA_HOME%%JULIA_EXE% +set JULIA_PKGDIR=%WINPYDIR%\..\settings\.julia +:julia_bad rem ****************** rem WinPython.ini part (removed from nsis)