[Python-Dev] Compiling Python with Python (original) (raw)

Jussi Pakkanen jpakkane at gmail.com
Wed Jun 5 21:21:53 CEST 2013


Hello all

I'd like to start this email by saying this is not a proposal to change Python's build system. This is just the results of some experimentation you might be interested it.

I have been working on a cross-platform build system called Meson, which is implemented in Python 3. For symmetry I wanted to see if it could be used to build Python itself. After about an evening worth of work, I got the basic C parts (that is, the build targets in the main Makefile such as core Python, pgen etc) built.

Main highlights:

if cc.has_header('io.h') pyconf.set('HAVE_IO_H', 1) endif

If you want to try it yourself, here are the steps (only 64 bit Linux tested thus far):

mkdir build cd build path/to/meson.py .. ninja

And there you have it. You can't do much with it, though (except run pgen to ensure that it actually did something ;) ).

If you have any questions that are not directly related to Python, feel free to email me or the Meson mailing list.

Enjoy, -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20130605/97866294/attachment.html>



More information about the Python-Dev mailing list