pinokiod 7.5.2 → 7.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -452,6 +452,8 @@ class Bin {
452
452
  let res
453
453
  let lines
454
454
  this.installed.conda = new Set()
455
+ this.installed.conda_versions = {}
456
+ this.installed.conda_builds = {}
455
457
  if (conda_exists) {
456
458
  // Try 3 times, because sometimes conda just silently quits with no error message
457
459
  for(let i=0; i<5; i++) {
package/kernel/shell.js CHANGED
@@ -1245,6 +1245,8 @@ class Shell {
1245
1245
  this.env.PIP_REQUIRE_VIRTUALENV = "true"
1246
1246
  }
1247
1247
 
1248
+ this.env.UV_PYTHON_PREFERENCE="only-managed"
1249
+
1248
1250
  // 2. venv
1249
1251
 
1250
1252
  /*
@@ -1320,7 +1322,7 @@ class Shell {
1320
1322
  if (use_uv) {
1321
1323
  // when python version is specified as venv.python => use uv
1322
1324
  venv_activation = [
1323
- `uv venv --managed-python ${shellEnvPath}${python_version}`,
1325
+ `uv venv ${shellEnvPath}${python_version}`,
1324
1326
  activate_command,
1325
1327
  // `uv pip install --upgrade pip setuptools wheel`,
1326
1328
  deactivate_path,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "7.5.2",
3
+ "version": "7.5.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -5990,6 +5990,8 @@ class Server {
5990
5990
  if (home) {
5991
5991
  if (version === this.version.pinokiod) {
5992
5992
  console.log("version up to date")
5993
+ } else if (!(await this.kernel.exists("bin/miniforge/conda-meta"))) {
5994
+ console.warn("[WARN] Managed home refresh deferred until Miniforge is installed")
5993
5995
  } else {
5994
5996
  // For every update, this gets triggered exactly once.
5995
5997
  // 1. first mkdir if it doesn't exist (this step is irrelevant since at this point the home dir will exist)