ci_install.sh 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. python setup.py bdist_wheel sdist
  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'