pinokiod 3.3.43 → 3.3.45

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.
@@ -0,0 +1,24 @@
1
+ class GXX {
2
+ async install(req, ondata) {
3
+ await this.kernel.bin.exec({
4
+ //message: "conda install -y nodejs=22.12.0 -c conda-forge"
5
+ message: [
6
+ "conda clean -y --all",
7
+ "conda install -y -c conda-forge 'gxx<12'"
8
+ ]
9
+ // conda: {
10
+ // name: "base",
11
+ // activate: "minimal"
12
+ // }
13
+ }, ondata)
14
+ }
15
+ async installed() {
16
+ return this.kernel.bin.installed.conda.has("gxx")
17
+ }
18
+ async uninstall(req, ondata) {
19
+ await this.kernel.bin.exec({
20
+ message: "conda remove gxx",
21
+ }, ondata)
22
+ }
23
+ }
24
+ module.exports = GXX
package/kernel/bin/vs.js CHANGED
@@ -101,9 +101,9 @@ class VS {
101
101
  }
102
102
  */
103
103
  this._env = await this.getpaths()
104
- if (this._envs.BUILD_PATH.length > 0) {
104
+ if (this._env.BUILD_PATH.length > 0) {
105
105
  // look for vcvarsall
106
- for(let p of this._envs.BUILD_PATH) {
106
+ for(let p of this._env.BUILD_PATH) {
107
107
  let vcvars_path = path.resolve(p, "vcvarsall.bat")
108
108
  const e = await this.kernel.bin.exists(vcvars_path)
109
109
  console.log("> vcvarsall.bat path exists?", { vcvars_path, e })
@@ -113,6 +113,7 @@ class VS {
113
113
  }
114
114
  }
115
115
  }
116
+ console.log("vs.init() this._env=", this.env)
116
117
  }
117
118
  }
118
119
  env () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.3.43",
3
+ "version": "3.3.45",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -507,6 +507,11 @@ class Server {
507
507
  name: "brew"
508
508
  })
509
509
  }
510
+ if (platform === "linux") {
511
+ requirements.push({
512
+ name: "gxx"
513
+ })
514
+ }
510
515
  if (this.kernel.gpu === "nvidia") {
511
516
  requirements.push({
512
517
  name: "cuda",
@@ -790,6 +795,11 @@ class Server {
790
795
  name: "brew"
791
796
  })
792
797
  }
798
+ if (platform === "linux") {
799
+ requirements.push({
800
+ name: "gxx"
801
+ })
802
+ }
793
803
  if (this.kernel.gpu === "nvidia") {
794
804
  requirements.push({
795
805
  name: "cuda"