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.git
Change directory to inside the repository.
cd switch-libpython2
Install prerequisites.
sudo bash setup.bash
Set up the docker environment.
sudo bash setup-docker.bash
Download and extract CPython 2.7.18.
bash extract.bash
Configure, build, and archive prefix.
sudo bash build-switch-docker.bash
Package the stdlib into a zip file.
bash package-stdlib.bash
The 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.