Building CPython

Chris Angelico rosuav at gmail.com
Thu May 14 13:45:09 EDT 2015


On Fri, May 15, 2015 at 3:32 AM, BartC <bc at freeuk.com> wrote:
> OK, thanks. I didn't even know where the executable was put! Now I don't
> need 'make install', while 'make test' I won't bother with any more.
>
> Making a small change and typing 'make' took 5 seconds, which is reasonable
> enough (although I had to use the copy of the source in Windows to find
> where the main.c file I needed was located).
>
> Now Python 3.4.3 says "Bart's Python".

Haha. I don't usually bother rebranding my builds of things; though
that's partly because normally I'm making very few changes, and all in
the hope that they'll be accepted upstream anyway.

Incidentally, a quick 'make' can range anywhere from a fraction of a
second to quite a long time, depending mainly on the speed of your
hard drive and the performance of your disk cache. On my Linux, a
"null make" (ie when literally nothing has changed - just rerunning
make) takes about half a second, and that's dealing with a module
that's failing to build. When you rebuild lots of times all at once,
you'll pretty much be working in RAM the whole time, assuming you have
enough of it available.

ChrisA



More information about the Python-list mailing list