internal/rosa/package: migrate python interpreter
Test / Create distribution (push) Successful in 1m5s
Test / Sandbox (push) Successful in 2m46s
Test / Hakurei (push) Successful in 3m47s
Test / ShareFS (push) Successful in 3m44s
Test / Sandbox (race detector) (push) Successful in 5m26s
Test / Hakurei (race detector) (push) Successful in 6m31s
Test / Flake checks (push) Successful in 1m21s

Packages will take quite some work.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-19 02:06:17 +09:00
parent 2f376d4813
commit 1ed027846d
4 changed files with 112 additions and 97 deletions
+20
View File
@@ -424,6 +424,8 @@ func (s *S) getFrame() azalea.Frame {
)
s.frame.Val = map[unique.Handle[azalea.Ident]]any{
k("linuxArch"): s.linuxArch(),
k("jobsE"): jobsE,
k("jobsFlagE"): jobsFlagE,
k("jobsLE"): jobsLE,
@@ -431,6 +433,24 @@ func (s *S) getFrame() azalea.Frame {
}
s.frame.Func = map[unique.Handle[azalea.Ident]]azalea.F{
// library functions
k("join"): {F: func(
args azalea.FArgs,
) (v any, set bool, err error) {
var elems []string
var sep string
if err = args.Apply(map[unique.Handle[azalea.Ident]]any{
k("elems"): &elems,
k("sep"): &sep,
}); err != nil {
return
}
v = strings.Join(elems, sep)
set = true
return
}},
// intenral/pkg built-ins
k("remoteTar"): {F: func(