ci_install.sh 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. jupyter server extension enable jupyterlab
  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 enable jupyterlab
  28. jupyter serverextension list 1>serverextensions 2>&1
  29. cat serverextensions
  30. cat serverextensions | grep -i "jupyterlab.*enabled"
  31. cat serverextensions | grep -i "jupyterlab.*OK"
  32. if [[ $GROUP == integrity ]]; then
  33. pip install notebook==4.3.1
  34. fi
  35. if [[ $GROUP == nonode ]]; then
  36. # Build the wheel
  37. pip install build
  38. python -m build .
  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 xeus-python">=0.9.0,<0.10.0"
  47. fi
  48. # Pin the jedi dependency to prevent a temporary breakage
  49. # See https://github.com/ipython/ipython/issues/12740, https://github.com/ipython/ipython/pull/12751
  50. pip install 'jedi<0.18'