Skip to content
This repository was archived by the owner on Feb 14, 2024. It is now read-only.

Commit 9af9419

Browse files
authored
Pin xeus-python to a known working version (#129)
1 parent 9693f3a commit 9af9419

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

jupyterlite_xeus_python/build.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
PYTHON_VERSION = "3.10"
2929

30+
XEUS_PYTHON_VERSION = "0.15.7"
31+
3032
CHANNELS = [
3133
"https://repo.mamba.pm/emscripten-forge",
3234
"https://repo.mamba.pm/conda-forge",
@@ -119,7 +121,7 @@ def _create_config(prefix_path):
119121

120122
def build_and_pack_emscripten_env(
121123
python_version: str = PYTHON_VERSION,
122-
xeus_python_version: str = "",
124+
xeus_python_version: str = XEUS_PYTHON_VERSION,
123125
packages: List[str] = [],
124126
environment_file: str = "",
125127
root_prefix: str = "/tmp/xeus-python-kernel",
@@ -253,7 +255,7 @@ def build_and_pack_emscripten_env(
253255

254256
def main(
255257
python_version: str = PYTHON_VERSION,
256-
xeus_python_version: str = "",
258+
xeus_python_version: str = XEUS_PYTHON_VERSION,
257259
packages: List[str] = typer.Option(
258260
[], help="The list of packages you want to install"
259261
),

jupyterlite_xeus_python/env_build_addon.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
ENV_EXTENSIONS,
2828
)
2929

30-
from .build import build_and_pack_emscripten_env
30+
from .build import XEUS_PYTHON_VERSION, build_and_pack_emscripten_env
3131

3232
JUPYTERLITE_XEUS_PYTHON = "@jupyterlite/xeus-python-kernel"
3333

@@ -41,7 +41,7 @@ class XeusPythonEnv(FederatedExtensionAddon):
4141

4242
__all__ = ["post_build"]
4343

44-
xeus_python_version = Unicode().tag(
44+
xeus_python_version = Unicode(XEUS_PYTHON_VERSION).tag(
4545
config=True, description="The xeus-python version to use"
4646
)
4747

@@ -93,19 +93,19 @@ def post_build(self, manager):
9393
# We should really find a nicer way.
9494
# (make jupyterlite-xeus-python extension somewhat configurable?)
9595
dest = self.output_extensions / "@jupyterlite" / "xeus-python-kernel" / "static"
96-
96+
9797
# copy *.data/*.js for all side packages
9898
for item in Path(self.cwd.name) .iterdir():
9999
if item.suffix == ".data":
100100

101-
file = item.name
101+
file = item.name
102102
yield dict(
103103
name=f"xeus:copy:{file}",
104104
actions=[(self.copy_one, [item, dest / file])],
105105
)
106106

107107
js_item = Path(self.cwd.name) / (str(item.stem) + '.js')
108-
js_file = js_item.name
108+
js_file = js_item.name
109109
yield dict(
110110
name=f"xeus:copy:{js_file}",
111111
actions=[(self.copy_one, [js_item, dest / js_file])],

0 commit comments

Comments
 (0)