This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Check all python modules in contrib/dg-extract-results.sh


Hi,

I have a box, where only python-minimal-2.7 seems to be installed and I have
tried to use make -k -j2; but this results in

./dg-extract-results.sh 
Traceback (most recent call last):
  File "./dg-extract-results.py", line 13, in <module>
    import io
ImportError: No module named io

This causes contrib/test_summary to be unable to show the results.

I would like to fix this with the attached patch:

The idea is to import all python modules that the dg-extract-results.py will
use in the python version check, and fall back to the default implementation
when any modules are missing.

Is that OK for trunk?



Thanks
Bernd.
 		 	   		  

Attachment: patch-dg-extract-results.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]