ci_install.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. if [ $OSTYPE == "Linux" ]; then
  9. sudo rm -rf $(which yarn)
  10. ! yarn
  11. fi
  12. # create jupyter base dir (needed for config retrieval)
  13. mkdir ~/.jupyter
  14. # Install and enable the server extension
  15. pip install -q --upgrade pip --user
  16. pip --version
  17. pip install jupyter_packaging
  18. # Show a verbose install if the install fails, for debugging
  19. pip install -e ".[test]" || pip install -v -e ".[test]"
  20. jlpm versions
  21. jlpm config current
  22. jupyter server extension list 1>serverextensions 2>&1
  23. cat serverextensions
  24. cat serverextensions | grep -i "jupyterlab.*enabled"
  25. cat serverextensions | grep -i "jupyterlab.*OK"
  26. # TODO: remove when we no longer support classic notebook
  27. jupyter serverextension list 1>serverextensions 2>&1
  28. cat serverextensions
  29. cat serverextensions | grep -i "jupyterlab.*enabled"
  30. cat serverextensions | grep -i "jupyterlab.*OK"
  31. if [[ $GROUP == integrity ]]; then
  32. pip install notebook==4.3.1
  33. fi
  34. if [[ $GROUP == nonode ]]; then
  35. # Build the wheel
  36. python setup.py bdist_wheel
  37. # Remove NodeJS, twice to take care of system and locally installed node versions.
  38. sudo rm -rf $(which node)
  39. sudo rm -rf $(which node)
  40. ! node
  41. fi
  42. # The debugger tests require a kernel that supports debugging
  43. if [[ $GROUP == js-debugger ]]; then
  44. pip install -U xeus-python>=0.8
  45. fi