pinokiod 3.2.38 → 3.2.39

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.
Files changed (2) hide show
  1. package/kernel/bin/py.js +6 -1
  2. package/package.json +1 -1
package/kernel/bin/py.js CHANGED
@@ -11,7 +11,12 @@ class Py {
11
11
  }
12
12
  async installed() {
13
13
  let exists = await this.kernel.exists(this.kernel.bin.path("py"))
14
- return exists
14
+ if (exists) {
15
+ console.log("pip", this.kernel.bin.installed.pip)
16
+ return this.kernel.bin.installed.pip.has("fastapi") && this.kernel.bin.installed.pip.has("uvicorn")
17
+ } else {
18
+ return false
19
+ }
15
20
  }
16
21
  async uninstall(req, ondata) {
17
22
  await this.kernel.bin.rm(this.kernel.bin.path("py"), ondata)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.38",
3
+ "version": "3.2.39",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {