ci_install.sh 1.1 KB

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