[Python-Dev] should I really have to install Python before Icanbuild it ?
Fredrik Lundh
fredrik at pythonware.com
Mon Dec 12 22:23:27 CET 2005
Brett Cannon wrote:
> > 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)?
you're right. I guess the right thing is to do this in the Makefile, and
use $(PYTHON) to find the appropriate interpreter.
changing the relevant rule to
$(AST_H) $(AST_C): $(AST_ASDL) $(ASDLGEN_FILES)
-$(PYTHON) $(ASDLGEN) $(AST_ASDL)
might be sufficient.
> The idea seems fine to me, though, since the generated files are
> already checked out.
</F>
More information about the Python-Dev
mailing list