Skip to content

Commit a561129

Browse files
tae898claude
andcommitted
Native parity: install setuptools in the parity env, pass SYSTEMROOT to the Windows child
test_wheel_packages builds with setup.py build_py; the uv parity env had no setuptools, so the test failed on windows-x64 and macos-arm64 and passed on Linux only because the runner's Python ships it (humemai/arcadedb-embedded-python#539). Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 56aab39 commit a561129

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/test-native.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ jobs:
512512
cores="$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 2)"
513513
limit=()
514514
if [ "$FINAL" = true ]; then limit=(--max-notyet 0); fi
515-
uv run --no-project --python "$PY" --with "$w" --with pytest --with numpy --with requests --with jpype1 --with pyarrow \
515+
uv run --no-project --python "$PY" --with "$w" --with pytest --with setuptools --with numpy --with requests --with jpype1 --with pyarrow \
516516
--with polars --with pandas --with duckdb --with networkx --with "psycopg[binary]" --with adbc-driver-postgresql \
517517
--with redis --with neo4j --with ladybug \
518518
python native/wheel/parity_wheel.py --repo "$GITHUB_WORKSPACE" \

‎tests/test_wheel_packages.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ def test_backend_selection_imports_without_native_library(tmp_path):
6161
"""A fresh interpreter, as the wheel's ``test_install.py`` runs: the JVM backend is the default."""
6262
root = _built_root(tmp_path)
6363
env = {"PATH": os.environ["PATH"]}
64+
if "SYSTEMROOT" in os.environ: # a Windows child without it cannot import socket
65+
env["SYSTEMROOT"] = os.environ["SYSTEMROOT"]
6466
if root is not None:
6567
env["PYTHONPATH"] = str(root)
6668
code = "import arcadedb.core, arcadedb._native as n;" "assert n.enabled() is False"

0 commit comments

Comments
 (0)