pinokiod 3.3.42 → 3.3.44

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/shell.js CHANGED
@@ -155,6 +155,10 @@ class Shell {
155
155
  ].join(':');
156
156
  }
157
157
 
158
+ if (this.platform === "linux") {
159
+ this.env.NVCC_PREPEND_FLAGS = "-ccbin {{which('g++')}}"
160
+ }
161
+
158
162
  this.env[PATH_KEY] = this.env[PATH_KEY] + path.delimiter + path.resolve(this.kernel.homedir, 'bin')
159
163
 
160
164
 
@@ -662,6 +666,7 @@ class Shell {
662
666
  if (this.platform === "win32") {
663
667
  try {
664
668
  let vcvars_path = this.kernel.bin.vs_path_env.VCVARSALL_PATH
669
+ console.log(`[shell] vcvars_path = ${vcvars_path}`)
665
670
  if (vcvars_path) {
666
671
  const architecture = os.arch().toLowerCase(); // 'x64', 'ia32' (32-bit), etc.
667
672
  const armArchitecture = process.arch.toLowerCase(); // For ARM-based architectures (on Windows), process.arch might be 'arm64', 'arm', etc.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.3.42",
3
+ "version": "3.3.44",
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"