Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Basthon
Basthon Kernel
Commits
476e9aee
Commit
476e9aee
authored
Dec 12, 2022
by
Romain Casati
Browse files
Python3: tip to update custome-packages.json added.
parent
d8d5f849
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/kernel-python3/update-custom-packages.py
0 → 100644
View file @
476e9aee
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
))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment