Skip to content

Commit

Permalink
Crashing if pip install or spacy download fails
Browse files Browse the repository at this point in the history
  • Loading branch information
zosman1 committed Dec 14, 2023
1 parent 80cf67c commit 5164a85
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cml/install_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@
#
# ###########################################################################

!pip3 install -r requirements.txt
!python3 -m spacy download en_core_web_sm
import sys

sys.exit(1)
!false || sys.exit(0)
!pip3 install -r requirements.txt || { echo 'pip install failed' ; exit 1; }
!python3 -m spacy download en_core_web_sm || { echo 'spacy setup failed' ; exit 1; }

0 comments on commit 5164a85

Please sign in to comment.