pinokiod 7.5.2 → 7.5.5

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.
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.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -5990,11 +5990,13 @@ 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 fse.pathExists(path.resolve(home, "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)
5996
5998
 
5997
- let exists = await this.kernel.exists(home)
5999
+ let exists = await fse.pathExists(home)
5998
6000
  if (!exists) {
5999
6001
  await fs.promises.mkdir(home, { recursive: true })
6000
6002
  }
@@ -6002,7 +6004,7 @@ class Server {
6002
6004
  needsManagedRefresh = true
6003
6005
  console.log("[TRY] Updating to the new version")
6004
6006
  let envPath = path.resolve(home, "ENVIRONMENT")
6005
- let envExists = await this.kernel.exists(envPath)
6007
+ let envExists = await fse.pathExists(envPath)
6006
6008
  if (!envExists) {
6007
6009
  let str = await Environment.ENV("system", home, this.kernel)
6008
6010
  await fs.promises.writeFile(envPath, str)