This repo contains the source code of Python 3.11.0rc1 customized to compile with Cosmopolitan libc. Meant for experimental purposes only.
- clone the cosmopolitan repo somewhere nearby (for headers)
cd ../
git clone https://github.com/jart/cosmopolitan
- download the cosmopolitan amalgamation (
cosmopolitan.a
,ape.lds
and friends) somewhere
cd ../
mkdir amalg
cd amalg/
wget https://justine.lol/cosmopolitan/cosmopolitan.zip
unzip cosmopolitan.zip
-
set the
COSMO_REPODIR
variable insuperconfigure
to point to wherever you have the cosmopolitan repo (in this case../cosmopolitan
) -
set the
COSMO_LIBDIR
variable insuperconfigure
to point to wherever you have the cosmopolitan amalgamation (in this case../amalg
) -
run
superconfigure
-
run
make -j4
-
run
./python.com