Handbook
Glossary
build-python3-lib ( -- )
Vocabulary
build-from-source
.
macos
Inputs
None
Outputs
None
Definition
USING:
accessors
assocs
build-from-source
formatting
io.launcher
kernel
sequences
;
IN:
build-from-source.macos
:
build-python3-lib
( -- )
"python"
"cpython"
latest-python3
[
H{
}
clone
{
"brew"
"--prefix"
"gdbm"
}
process-contents
{
"brew"
"--prefix"
"xz"
}
process-contents
{
"brew"
"--prefix"
"tcl-tk"
}
process-contents
[
drop
"-I%s/include -I%s/include"
sprintf
"CFLAGS"
pick
set-at
]
[
drop
"-L%s/lib -L%s/lib"
sprintf
"LDFLAGS"
pick
set-at
]
[
2nip
"%s/lib/pkgconfig"
sprintf
"PKG_CONFIG_PATH"
pick
set-at
]
3tri
<process>
swap
>>environment
{
"./configure"
"--build=aarch64-apple-darwin"
"--target=aarch64-apple-darwin"
"--host=aarch64-apple-darwin"
"--with-pydebug"
}
{
"brew"
"--prefix"
"openssl@3"
}
process-contents
"--with-openssl=%s"
sprintf
suffix
>>command
try-process
{
"make"
"-j"
}
try-process
]
with-github-worktree-tag
;