Commit 476e9aee authored by Romain Casati's avatar Romain Casati
Browse files

Python3: tip to update custome-packages.json added.

parent d8d5f849
exit()
# run this inside basthon to update custom-packages.json
import micropip
import json
f0 = json.loads(micropip.freeze())
await micropip.install(["my_super_module", "my other_super_module"])
f1 = json.loads(micropip.freeze())
data = {p: f1['packages'][p] for p in f1['packages'] if p not in f0['packages']}
print(json.dumps(data, indent=2))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment