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

Jeremy Hylton jeremy at alum.mit.edu
Mon Dec 12 20:22:30 CET 2005


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.

Jeremy

On 12/12/05, Fredrik Lundh <fredrik at pythonware.com> wrote:
> looks like you need to have a recent Python version installed
> to be able to build the current trunk:
>
> ./Parser/asdl_c.py -h ./Include -c ./Python ./Parser/Python.asdl
> ./Parser/asdl_c.py:150: SyntaxWarning: local name 'self' in 'sum_with_constructors' shadows use of 'self' as global in nested scope
> 'emit'
>   def sum_with_constructors(self, sum, name, depth):
> ./Parser/asdl_c.py:263: SyntaxWarning: local name 'self' in 'emit_function' shadows use of 'self' as global in nested scope 'emit'
>   def emit_function(self, name, ctype, args, attrs, union=1):
> ./Parser/asdl_c.py:296: SyntaxWarning: local name 'self' in 'emit_body_union' shadows use of 'self' as global in nested scope 'emit'
>   def emit_body_union(self, name, args, attrs):
> ./Parser/asdl_c.py:305: SyntaxWarning: local name 'self' in 'emit_body_struct' shadows use of 'self' as global in nested scope
> 'emit'
>   def emit_body_struct(self, name, args, attrs):
> ./Parser/asdl_c.py:444: SyntaxWarning: local name 'self' in 'visitField' shadows use of 'self' as global in nested scope 'emit'
>   def visitField(self, field, name, depth, product):
> ./Parser/asdl_c.py:444: SyntaxWarning: local name 'depth' in 'visitField' shadows use of 'depth' as global in nested scope 'emit'
>   def visitField(self, field, name, depth, product):
> ./Parser/asdl_c.py:605: SyntaxWarning: local name 'self' in 'visitField' shadows use of 'self' as global in nested scope 'emit'
>   def visitField(self, field, name, depth, product):
> ./Parser/asdl_c.py:605: SyntaxWarning: local name 'depth' in 'visitField' shadows use of 'depth' as global in nested scope 'emit'
>   def visitField(self, field, name, depth, product):
> Traceback (most recent call last):
>   File "./Parser/asdl_c.py", line 9, in ?
>     import asdl
>   File "./Parser/asdl.py", line 53, in ?
>     class ASDLScanner(spark.GenericScanner, object):
> NameError: name 'object' is not defined
> make: *** [Include/Python-ast.h] Error 1
>
> (this machine has Python 2.1)
>
> any reason why the C files are not checked into subversion ?
>
> </F>
>
>
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/jeremy%40alum.mit.edu
>


More information about the Python-Dev mailing list