ci_install.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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
  31. # The debugger tests require a kernel that supports debugging
  32. if [[ $GROUP == js-debugger ]]; then
  33. pip install xeus-python>=0.8
  34. fi