Skip to content

Commit

Permalink
abort if pip install cityenergyanalyst fails...
Browse files Browse the repository at this point in the history
  • Loading branch information
daren-thomas committed Nov 13, 2019
1 parent e0d31b9 commit caad852
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions setup/cityenergyanalyst.nsi
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# NSIS script for creating the City Energy Analyst installer

; include logic library
!include 'LogicLib.nsh'

; include the modern UI stuff
!include "MUI2.nsh"
Expand Down Expand Up @@ -175,6 +177,15 @@ Section "Base Installation" Base_Installation_Section
nsExec::ExecToLog '"$INSTDIR\Dependencies\Python\python.exe" -m pip install -U --force-reinstall pip'
DetailPrint "Pip installing CityEnergyAnalyst==${VER}"
nsExec::ExecToLog '"$INSTDIR\Dependencies\Python\python.exe" -m pip install -U cityenergyanalyst==${VER}'

# make sure cea was installed
Pop $0
DetailPrint 'pip install cityenergyanalyst==${VER} returned $0'
${If} "$0" != "0"
Abort "Could not install CityEnergyAnalyst ${VER} - see Details"
${EndIf}


DetailPrint "Pip installing Jupyter"
nsExec::ExecToLog '"$INSTDIR\Dependencies\Python\python.exe" -m pip install --force-reinstall jupyter ipython'

Expand Down

0 comments on commit caad852

Please sign in to comment.