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 c6db931
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,21 @@ 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: |
python -m pip install -U "jupyterlab>=4.0.0,<5"
python -m pip install hatch build
cd jupyterlab
python -m pip install -e .
# see https://github.com/jupyterlab/hatch-jupyter-builder/issues/131
# python -m pip install -e .
jlpm install
jlpm build
# python -m pip install -U "jupyterlab>=4.0.0,<5"
- name: Lint the extension
run: |
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 c6db931

Please sign in to comment.