ci_install.sh 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. # Show a verbose install if the install fails, for debugging
  18. pip install -e ".[test]" || pip install -v -e ".[test]"
  19. jlpm versions
  20. jlpm config current
  21. # TODO: remove when we no longer support classic notebook
  22. jupyter serverextension enable jupyterlab
  23. jupyter serverextension list 1>serverextensions 2>&1
  24. cat serverextensions
  25. cat serverextensions | grep -i "jupyterlab.*enabled"
  26. cat serverextensions | grep -i "jupyterlab.*OK"
  27. if [[ $GROUP == integrity ]]; then
  28. pip install notebook==4.3.1
  29. fi
  30. if [[ $GROUP == nonode ]]; then
  31. # Build the wheel
  32. pip install build
  33. python -m build .
  34. # Remove NodeJS, twice to take care of system and locally installed node versions.
  35. sudo rm -rf $(which node)
  36. sudo rm -rf $(which node)
  37. ! node
  38. fi
  39. # The debugger tests require a kernel that supports debugging
  40. if [[ $GROUP == js-debugger ]]; then
  41. pip install xeus-python">=0.9.0,<0.10.0"
  42. fi
  43. # Pin the jedi dependency to prevent a temporary breakage
  44. # See https://github.com/ipython/ipython/issues/12740, https://github.com/ipython/ipython/pull/12751
  45. pip install 'jedi<0.18'