This repository contains a Python 2.7.18 port to Nintendo Switch.
These steps are done on a Ubuntu 18.04 based image.
Clone the repository.
git clone https://github.com/uyjulian/switch-libpython2.gitChange directory to inside the repository.
cd switch-libpython2Install prerequisites.
sudo bash setup.bashSet up the docker environment.
sudo bash setup-docker.bashDownload and extract CPython 2.7.18.
bash extract.bashConfigure, build, and archive prefix.
sudo bash build-switch-docker.bashPackage the stdlib into a zip file.
bash package-stdlib.bashThe resulting files are:
python27.zip- The python stdlibpython27-switch.tar.gz- The built Python prefix
This repository is licensed under PSF license v2. For more information, see LICENSE file.