ci_install.sh 867 B

123456789101112131415161718192021222324252627282930313233343536
  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. sudo rm -rf $(which yarn)
  9. ! yarn
  10. # create jupyter base dir (needed for config retrieval)
  11. mkdir ~/.jupyter
  12. # Install and enable the server extension
  13. pip install -q --upgrade pip
  14. pip --version
  15. pip install -e ".[test]"
  16. jlpm versions
  17. jlpm config current
  18. jupyter serverextension enable --py jupyterlab
  19. if [[ $GROUP == integrity ]]; then
  20. pip install notebook==4.3.1
  21. fi
  22. if [[ $GROUP == nonode ]]; then
  23. # Build the wheel
  24. python setup.py bdist_wheel
  25. # Remove NodeJS, twice to take care of system and locally installed node versions.
  26. sudo rm -rf $(which node)
  27. sudo rm -rf $(which node)
  28. ! node
  29. fi