davidmalcolm / gcc-python-plugin

GCC plugin that embeds CPython inside the compiler
GNU General Public License v3.0
197 stars 58 forks source link

python2.6 incompatible #96

Closed davidmalcolm closed 6 years ago

davidmalcolm commented 7 years ago

Crash when using python2.6

{{{ $ make Makefile:189: warning: overriding commands for target autogenerated-casts.c' Makefile:186: warning: ignoring old commands for targetautogenerated-casts.c' python generate-config-h.py -o autogenerated-config.h --gcc="cc" --plugindir="plugin" Traceback (most recent call last): File "generate-config-h.py", line 21, in from configbuilder import ConfigBuilder, CheckFor File "/nail/home/buck/trees/theirs/gcc-python-plugin/configbuilder.py", line 20, in from subprocess import Popen, PIPE, check_output ImportError: cannot import name check_output make: *** [autogenerated-config.h] Error 1 }}}

This function was added in 2.7. It's pretty easy to shim out, but should at minimum update the doc:

https://gcc-python-plugin.readthedocs.org/en/latest/basics.html

davidmalcolm commented 7 years ago

Imported from trac issue 56. Created by bukzor on 2014-03-06T18:42:15, last modified: 2014-03-06T18:42:15