This is my sloppy attempt at running Python 1 on a modern Linux system, compiled to 64 bit.
Just for fun - don't actually use this for anything serious!
Docker helps a lot in the process because the required build environment and libraries are so old.
It probably won't build natively on your system without heavy modifications.
In the project's directory:
docker build -t python1 .
# Or pull a pre-built image:
docker pull ghcr.io/eden881/python1:1.6.1Then run it with:
docker run --rm -it python1
# Or if you pulled the image:
docker run --rm -it ghcr.io/eden881/python1:1.6.1You can check whether it's 32 or 64 bit like this:
import sys
print sys.maxintsys.maxint was removed in Python 3, but in Python 1 it can be used to check the bitness:
2147483647means 32 bit9223372036854775807means 64 bit