ci_install.sh 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 enable jupyterlab
  23. jupyter server extension list 1>serverextensions 2>&1
  24. cat serverextensions
  25. cat serverextensions | grep -i "jupyterlab.*enabled"
  26. cat serverextensions | grep -i "jupyterlab.*OK"
  27. # TODO: remove when we no longer support classic notebook
  28. jupyter serverextension enable jupyterlab
  29. jupyter serverextension list 1>serverextensions 2>&1
  30. cat serverextensions
  31. cat serverextensions | grep -i "jupyterlab.*enabled"
  32. cat serverextensions | grep -i "jupyterlab.*OK"
  33. if [[ $GROUP == integrity ]]; then
  34. pip install notebook==4.3.1
  35. fi
  36. if [[ $GROUP == nonode ]]; then
  37. # Build the wheel
  38. python setup.py bdist_wheel
  39. # Remove NodeJS, twice to take care of system and locally installed node versions.
  40. sudo rm -rf $(which node)
  41. sudo rm -rf $(which node)
  42. ! node
  43. fi
  44. # The debugger tests require a kernel that supports debugging
  45. if [[ $GROUP == js-debugger ]]; then
  46. pip install -U xeus-python>=0.8
  47. fi