How to compile Python 1.0

 ̄綄美尐妖づ 提交于 2019-12-08 00:57:58

问题


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..


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/685732/how-to-compile-python-1-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!