Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions scripts/build_cosmo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,21 @@ function build_python () {
python3 ${WORKDIR}/scripts/patch_pip_script.py ./bin/pip3 .com
python3 ${WORKDIR}/scripts/patch_pip_script.py ./bin/pip${PYTHON_VER} .com

echo "::endgroup::"
##############
# Assimilate #
##############
echo "::group::Assimilate python.com"
cd ${BUILDDIR}

cd ${python_install_dir}
$(which assimilate) -e -x -o ./bin/python.x86_64.elf ./bin/python.com
$(which assimilate) -e -a -o ./bin/python.aarch64.elf ./bin/python.com
$(which assimilate) -m -x -o ./bin/python.x86_64.macho ./bin/python.com

# M1 macs should rely on xcode to compile the launcher from the embedded ape-m1.c
#$(which assimilate) -m -a -o ./bin/python.aarch64.macho ./bin/python.com

echo "::endgroup::"
###################
# Compress output #
Expand Down