Skip to content

Commit

Permalink
The extension to install can be choosen in script
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Apr 8, 2024
1 parent 0c3da07 commit 8101fae
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,23 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

EXTENSION=$1

[ "${EXTENSION}" = "websocket" ] && PACKAGE="jupyterlab-ws-chat" || PACKAGE="jupyterlab-${EXTENSION}-chat"


# install core packages
pip install jupyterlab~=4.0
jlpm install
jlpm build

# install the collaborative chat extension
pip install -e packages/jupyterlab-collaborative-chat[test]
if [ -z "${EXTENSION}" ]; then
jlpm build
# install the collaborative chat extension
pip install -e packages/jupyterlab-collaborative-chat[test]

# install websocket chat extension
pip install -e packages/jupyterlab-ws-chat[test]
# install websocket chat extension
pip install -e packages/jupyterlab-ws-chat[test]
else
jlpm build:${EXTENSION}
pip install -e packages/${PACKAGE}[test]
fi

0 comments on commit 8101fae

Please sign in to comment.