Daankular commited on
Commit
267850d
·
1 Parent(s): 63cc737

Pre-install meson-python+ninja before --no-build-isolation step

Browse files

hmr2/skel have transitive deps that use meson-python as build backend.
With --no-build-isolation pip cannot auto-fetch build backends into an
isolated env, so mesonpy must already be present in the main env.

Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -68,6 +68,13 @@ def _install_runtime_packages():
68
  if _RUNTIME_PKG_MARKER.exists():
69
  return
70
  print("[startup] Installing runtime packages (first run, ~10-15 min)...")
 
 
 
 
 
 
 
71
  subprocess.run(
72
  [sys.executable, "-m", "pip", "install", "--quiet", "--no-build-isolation"]
73
  + _NO_ISOLATION_PACKAGES, check=True,
 
68
  if _RUNTIME_PKG_MARKER.exists():
69
  return
70
  print("[startup] Installing runtime packages (first run, ~10-15 min)...")
71
+ # With --no-build-isolation pip uses the main env for all build backends.
72
+ # Pre-install meson-python + ninja so meson-based transitive deps (e.g. from
73
+ # hmr2/skel's dep tree) can be built without a separate isolated env.
74
+ subprocess.run(
75
+ [sys.executable, "-m", "pip", "install", "--quiet",
76
+ "meson-python", "ninja"], check=True,
77
+ )
78
  subprocess.run(
79
  [sys.executable, "-m", "pip", "install", "--quiet", "--no-build-isolation"]
80
  + _NO_ISOLATION_PACKAGES, check=True,