python3 package for sculpt

Provides recipes for deploying python3 on sculpt.
Also adds the feature of triggering the execution of python scripts
on ROM updates (see python3.run).
This commit is contained in:
Johannes Schlatow
2018-06-27 17:25:02 +02:00
committed by Norman Feske
parent a5d06a5ce8
commit a67a5de5ef
11 changed files with 162 additions and 46 deletions

View File

@@ -0,0 +1,5 @@
Python interpreter version 3
This package runs a non-interactive python interpreter. The programm will execute
a file `hello.py` provided a File_system session.

View File

@@ -0,0 +1,6 @@
_/raw/python3
_/src/libc
_/src/libpython3
_/src/python3
_/src/vfs
_/src/vfs_jitterentropy

1
recipes/pkg/python3/hash Normal file
View File

@@ -0,0 +1 @@
2018-07-03 c2dd737dddf6f94e923806cb769d47b26a0d8d17

View File

@@ -0,0 +1,17 @@
<runtime ram="32M" caps="200" binary="python3" config="python3.config">
<requires> <file_system/> <rtc /> </requires>
<content>
<rom label="python3"/>
<rom label="python3.lib.so"/>
<rom label="python3.config"/>
<rom label="ld.lib.so"/>
<rom label="vfs.lib.so"/>
<rom label="vfs_jitterentropy.lib.so"/>
<rom label="libc.lib.so"/>
<rom label="libm.lib.so"/>
<rom label="python3.tar"/>
</content>
</runtime>

View File

@@ -0,0 +1,4 @@
content: python3.config
python3.config:
cp $(REP_DIR)/recipes/raw/python3/$@ $@

1
recipes/raw/python3/hash Normal file
View File

@@ -0,0 +1 @@
2018-07-03 37f7f0945ff5a585afff1c4f4c43cab0a104e2bb

View File

@@ -0,0 +1,18 @@
<config>
<pythonpath name="/python/Lib/:" />
<file name="hello.py" />
<vfs>
<dir name="dev">
<log/>
<jitterentropy name="urandom" />
<jitterentropy name="random" />
<rtc/>
<zero/>
</dir>
<dir name="python">
<tar name="python3.tar" />
</dir>
<fs />
</vfs>
<libc stdin="/dev/zero" stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc"/>
</config>

View File

@@ -1 +1 @@
2018-06-26 ed89744a780cb71d1c3f2fdfe52d6c90bc87c919
2018-07-03 9f3f71ff1b0534b62b1a5328962a45487bbf83a3

View File

@@ -1 +1 @@
2018-06-26 beb1cff416381790963ca24d3d2d1d0d3b24d1c8
2018-07-03 4fc9571da9b41bf0c36391cecd5f630e91923695