pinokiod 3.3.14 → 3.3.16

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
@@ -134,6 +134,17 @@ class VS {
134
134
  if (paths.CMAKE_PATH) env.PATH = env.PATH.concat(paths.CMAKE_PATH)
135
135
  if (paths.CL_PATH) env.PATH = env.PATH.concat(paths.CL_PATH)
136
136
 
137
+ let build_paths = paths.BUILD_PATH
138
+ // look for vcvarsall
139
+ for(let p of build_paths) {
140
+ const e = await this.kernel.bin.exists(p)
141
+ if (e) {
142
+ let vcvars_path = path.resolve(p, "vcvarsall.exe")
143
+ env.VCVARSALL_PATH = vcvars_path
144
+ break
145
+ }
146
+ }
147
+
137
148
  // const clpaths = await glob('**/bin/Hostx64/x64/cl.exe', { cwd: paths.MSVC_PATH })
138
149
  // if (clpaths && clpaths.length > 0) {
139
150
  // let win_cl_path = path.resolve(paths.MSVC_PATH, path.dirname(clpaths[0]))
package/kernel/shell.js CHANGED
@@ -660,6 +660,7 @@ class Shell {
660
660
  try {
661
661
  const architecture = os.arch().toLowerCase(); // 'x64', 'ia32' (32-bit), etc.
662
662
  const armArchitecture = process.arch.toLowerCase(); // For ARM-based architectures (on Windows), process.arch might be 'arm64', 'arm', etc.
663
+ console.log({ architecture, armArchitecture })
663
664
 
664
665
  // Map architectures to vcvarsall.bat argument
665
666
  let arg
@@ -689,11 +690,13 @@ class Shell {
689
690
  }
690
691
 
691
692
  if (arg) {
692
- let vcvars_path = path.resolve(this.kernel.bin.vs_path_env.BUILD_PATH, "vcvarsall.exe")
693
+ let vcvars_path = this.kernel.bin.vs_path_env.VCVARSALL_PATH
693
694
  console.log({ arg, vcvars_path })
694
695
  conda_activation.push(`${vcvars_path} ${arg} > nul 2>&1`)
695
696
  }
697
+ console.log('vc vars setup successful')
696
698
  } catch (e) {
699
+ console.log('vc vars setup', e)
697
700
  }
698
701
 
699
702
  // const vs_path_env = this.kernel.bin.vs_path_env
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.3.14",
3
+ "version": "3.3.16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {