githubtraining / training-manual

Home of the words in the GitHub Training Manual and teaching scripts.
https://githubtraining.github.io/training-manual
Creative Commons Attribution 4.0 International
270 stars 274 forks source link

Add conditions to retry HTTPie install #347

Closed nntrn closed 2 years ago

nntrn commented 2 years ago

Add conditions for installing older versions of httpie if a failure occurs due to multidict dependency related issues

Attempt 1:

# install without multidict compilation:  
[[ -z $(pip show httpie 2>/dev/null) ]] &&
  MULTIDICT_NO_EXTENSIONS=1 python -m pip install --no-cache-dir httpie

Attempt 2:

# install older version without multidict dependency
[[ -z $(pip show httpie 2>/dev/null) ]] && python -m pip install httpie==2.6.0