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> _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com