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