ci_install.sh 1.3 KB

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