ci_install.sh 1.2 KB

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