Skip to content

Commit

Permalink
Init submodules, update binder setup
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Oct 8, 2023
1 parent f84f759 commit 1ccfbf2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true

- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1

- name: Install dependencies
run: |
cd jupyterlab
python -m pip install -e .
python -m pip install -e .[dev]
jlpm install
jlpm build
# python -m pip install -U "jupyterlab>=4.0.0,<5"
Expand Down
2 changes: 1 addition & 1 deletion binder/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ channels:
dependencies:
# runtime dependencies
- python >=3.10,<3.11.0a0
- jupyterlab >=4.0.0,<5
# - jupyterlab >=4.0.0,<5
# labextension build dependencies
- nodejs >=18,<19
- pip
Expand Down
11 changes: 10 additions & 1 deletion binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import subprocess
import sys
from pathlib import Path

import os

ROOT = Path.cwd()

Expand All @@ -26,6 +26,15 @@ def _(*args, **kwargs):
print("\nERROR", return_code, " ".join(args))
sys.exit(return_code)

_("git", "submodule", "update", "--init")

cwd = os.getcwd()
os.chdir('jupyterlab')
_("python", "-m", "pip", "install", "-e", ".")
_("jlpm", "install")
_("jlpm", "build")
os.chdir(cwd)

# verify the environment is self-consistent before even starting
_(sys.executable, "-m", "pip", "check")

Expand Down

0 comments on commit 1ccfbf2

Please sign in to comment.