pinokiod 3.3.8 → 3.3.10

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/bin/vs.js CHANGED
@@ -44,7 +44,8 @@ class VS {
44
44
  console.log({ BUILD_PATH })
45
45
  CMAKE_PATH = await glob('**/Microsoft/CMake/CMake/bin', { absolute: true, cwd: ROOT_PATH })
46
46
  console.log({ CMAKE_PATH })
47
- CL_PATH = await glob('**/Hostx64/x64/cl.exe', { absolute: true, cwd: ROOT_PATH })
47
+ //CL_PATH = await glob('**/Hostx64/x64/cl.exe', { absolute: true, cwd: ROOT_PATH })
48
+ CL_PATH = await glob('**/Hostx64/x64', { absolute: true, cwd: ROOT_PATH })
48
49
  console.log({ CL_PATH })
49
50
  break;
50
51
  }
@@ -116,6 +117,7 @@ class VS {
116
117
  //
117
118
  // }
118
119
  async init() {
120
+ console.log("############################################ vs")
119
121
  if (this.kernel.platform === "win32") {
120
122
  let paths = await this.getpaths()
121
123
 
package/kernel/index.js CHANGED
@@ -158,7 +158,7 @@ class Kernel {
158
158
  if (port) {
159
159
  return portfinder.isAvailablePromise({ host: "0.0.0.0", port })
160
160
  } else {
161
- return portfinder.getPortPromise({ port: 42002 })
161
+ return portfinder.getPortPromise({ port: 42003 })
162
162
  }
163
163
  }
164
164
  path(...args) {
package/kernel/shell.js CHANGED
@@ -656,15 +656,16 @@ class Shell {
656
656
  // }
657
657
 
658
658
 
659
- // if (this.platform === "win32") {
660
- // const vs_path_env = this.kernel.bin.vs_path_env
661
- // console.log({ vs_path_env })
662
- // if (vs_path_env && vs_path_env.PATH) {
663
- // const vs = `set PATH=${vs_path_env.PATH.join(path.delimiter)}${path.delimiter}%PATH%`
664
- // console.log({ vs })
665
- // conda_activation.push(vs)
666
- // }
667
- // }
659
+ if (this.platform === "win32") {
660
+ const vs_path_env = this.kernel.bin.vs_path_env
661
+ console.log({ vs_path_env })
662
+ if (vs_path_env && vs_path_env.PATH) {
663
+ this.env.VS_RELATED_PATHS = `${vs_path_env.PATH.join(path.delimiter)}${path.delimiter}`
664
+ const vs = `set PATH=%VS_RELATED_PATHS$${path.delimiter}%PATH%`
665
+ console.log({ vs })
666
+ conda_activation.push(vs)
667
+ }
668
+ }
668
669
 
669
670
 
670
671
  // Update env setting
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.3.8",
3
+ "version": "3.3.10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {