ci_install.sh 959 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. # Copyright (c) Jupyter Development Team.
  3. # Distributed under the terms of the Modified BSD License.
  4. set -ex
  5. set -o pipefail
  6. # Building should work without yarn installed globally, so uninstall the
  7. # global yarn installed by default.
  8. sudo rm -rf $(which yarn)
  9. ! yarn
  10. # create jupyter base dir (needed for config retrieval)
  11. mkdir ~/.jupyter
  12. # Install and enable the server extension
  13. pip install -q --upgrade pip
  14. pip --version
  15. # Show a verbose install if the install fails, for debugging
  16. pip install -e ".[test]" || pip install -v -e ".[test]"
  17. jlpm versions
  18. jlpm config current
  19. jupyter serverextension enable --py jupyterlab
  20. if [[ $GROUP == integrity ]]; then
  21. pip install notebook==4.3.1
  22. fi
  23. if [[ $GROUP == nonode ]]; then
  24. # Build the wheel
  25. python setup.py bdist_wheel
  26. # Remove NodeJS, twice to take care of system and locally installed node versions.
  27. sudo rm -rf $(which node)
  28. sudo rm -rf $(which node)
  29. ! node
  30. fi