views:

216

answers:

2

For some perverse reason, I want to try Python 1.0.. How would I go about compiling it, or rather, what is the earlier version that will compile cleanly with current compilers?

I'm using Mac OS X 10.5, although since it's for nothing more than curiosity (about how the language has changed), compiling in a Linux virtual machine is possible too..

+8  A: 

Python 1.0.1 compiles perfectly under Ubuntu 8.10 using GCC 4.3.2. It should compile under Leopard, too.

Download the source here, and compile the usual way:

./configure
make

UPDATE: I tested it, and it compiles under Leopard, too.

Can Berk Güder
Was something wrong with 1.0.0 that required a 1.0.1 fix?
Thomas L Holaday
The oldest release I could find on python.org was 1.0.1.
Can Berk Güder
From python.org: "If you find an older Python release (e.g. 0.9.8), we're interested in getting a copy!"
Can Berk Güder
Opps.. I originally tried (a week or two ago) from the git-svn imported Python SVN, which seemed to be missing files. Odd. The source tarball compiles perfectly, thanks!
dbr
+3  A: 

Going further backwards in time, I pulled the 0.9.1p1 source from alt.sources via Google Groups' archive. That's 18+ year old code!

I made a few changes (documented in README.reconstructed) to get it to compile on my OS 10.4 box. Source available for your enjoyment. I've also sent email to python.org maintainers to see if they want a copy of it.

It doesn't compile cleanly. There are some warnings, mostly to do lack of prototypes. But it does work.

Andrew Dalke