Skip to content

Commit c7873d7

Browse files
committed
Add support for building guidata wheel and options to skip building
1 parent 98434d1 commit c7873d7

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

scripts/serve_dev_wheels.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Development Wheel Server for JupyterLite Testing
66
=================================================
77
8-
This script builds development wheels for Sigima and DataLab-Kernel,
8+
This script builds development wheels for guidata, Sigima and DataLab-Kernel,
99
then serves them via HTTP for installation in JupyterLite.
1010
1111
Usage:
@@ -37,6 +37,7 @@
3737
from pathlib import Path
3838

3939
# Default paths - adjust if your workspace layout differs
40+
DEFAULT_GUIDATA_PATH = Path("C:/Dev/guidata")
4041
DEFAULT_SIGIMA_PATH = Path("C:/Dev/Sigima")
4142
DEFAULT_KERNEL_PATH = Path("C:/Dev/DataLab-Kernel")
4243
DEFAULT_WHEELS_DIR = Path("C:/Dev/wheels")
@@ -210,6 +211,12 @@ def main():
210211
default=DEFAULT_PORT,
211212
help=f"HTTP server port (default: {DEFAULT_PORT})",
212213
)
214+
parser.add_argument(
215+
"--guidata-path",
216+
type=Path,
217+
default=DEFAULT_GUIDATA_PATH,
218+
help=f"Path to guidata project (default: {DEFAULT_GUIDATA_PATH})",
219+
)
213220
parser.add_argument(
214221
"--sigima-path",
215222
type=Path,
@@ -238,6 +245,11 @@ def main():
238245
action="store_true",
239246
help="Serve existing wheels only, don't rebuild",
240247
)
248+
parser.add_argument(
249+
"--skip-guidata",
250+
action="store_true",
251+
help="Skip building guidata wheel",
252+
)
241253
parser.add_argument(
242254
"--skip-sigima",
243255
action="store_true",
@@ -262,6 +274,11 @@ def main():
262274

263275
built_wheels = []
264276

277+
if not args.skip_guidata:
278+
wheel = build_wheel(args.guidata_path, args.wheels_dir)
279+
if wheel:
280+
built_wheels.append(wheel)
281+
265282
if not args.skip_sigima:
266283
wheel = build_wheel(args.sigima_path, args.wheels_dir)
267284
if wheel:

0 commit comments

Comments
 (0)