[Python-Dev] should I really have to install Python before Ican build it ?

Brett Cannon bcannon at gmail.com
Mon Dec 12 22:17:32 CET 2005


On 12/12/05, Fredrik Lundh <fredrik at pythonware.com> wrote:
> Jeremy Hylton wrote:
>
> > The C files are checked into subversion.  Perhaps there is some
> > problem with the timestamps that causes the Makefile to try to rebuild
> > them anyway?  I have a modern Python and I've been doing a fair amount
> > of development on these files; as a result, I haven't noticed a
> > problem.
>
> ah, of course.  subversion sets the timestamp to the checkout time for each
> file, so things may or may not work after a fresh checkout.
>
> however, adsl_c does use the installed python, rather than the local version:
>
>     #! /usr/bin/env python
>     """Generate C code from an ASDL description."""
>
> maybe the right thing here would be to change this to
>
>     #!./python
>     """Generate C code from an ASDL description."""
>
> and only run the script if ./python has been built ?
>

What if you build with a different suffix for the executable?  Or do
different versions of make build different names (e.g., on my OS X
machine the executable is python.exe in my checkout, not python)?

The idea seems fine to me, though, since the generated files are
already checked out.

-Brett


More information about the Python-Dev mailing list