[SciPy-dev] agg/graphics_context.py and agg/graphics_context.swig.py from agg/swig_src

Travis Oliphant oliphant at ee.byu.edu
Wed Oct 1 04:02:40 EDT 2003


Eric,

Could you explain what is going on with these .py files?

It looks like distutils tries to compile everything with a *.py 
extension but these files won't compile because of some stuff at the 
front of the file.

For example, the error shows up during RPM building right now

as

RPM build errors:
     File not found: 
/var/tmp/SciPy-buildroot/usr/lib/python2.2/site-packages/kiva/agg/graphics_context.pyc
     File not found: 
/var/tmp/SciPy-buildroot/usr/lib/python2.2/site-packages/kiva/agg/graphics_context.swig.pyc

The files are probably not found due to compilation issues earlier:

byte-compiling 
/usr/local/lib/python2.3/site-packages/kiva/agg/graphics_context.py to 
graphics_context.pyc
   File 
"/usr/local/lib/python2.3/site-packages/kiva/agg/graphics_context.py", 
line 1
     %pythoncode {
     ^
SyntaxError: invalid syntax
byte-compiling 
/usr/local/lib/python2.3/site-packages/kiva/agg/graphics_context.swig.py 
to graphics_context.swig.pyc
   File 
"/usr/local/lib/python2.3/site-packages/kiva/agg/graphics_context.swig.py", 
line 1
     %pythoncode {
     ^
SyntaxError: invalid syntax



-Travis O.



More information about the SciPy-Dev mailing list