# HG changeset patch # User Pascal Bellard # Date 1286810660 -7200 # Node ID 3b9b0922936abeff039c8d2136e9018a89066a68 # Parent 09f07fb46c1562e50396e8117843b6671affa2b8 psyco: fix opcodes for python 2.7 diff -r 09f07fb46c15 -r 3b9b0922936a psyco/receipt --- a/psyco/receipt Mon Oct 11 17:07:58 2010 +0200 +++ b/psyco/receipt Mon Oct 11 17:24:20 2010 +0200 @@ -15,6 +15,10 @@ compile_rules() { cd $src + # Fix opcodes for python 2.7 + sed -i -e 's/JUMP_IF_FALSE\([: )]\)/JUMP_IF_FALSE_OR_POP\1/' \ + -e 's/JUMP_IF_TRUE\([: )]\)/JUMP_IF_TRUE_OR_POP\1/' \ + c/Python/pycompiler.c c/mergepoints.c python setup.py install --root=$PWD/_pkg }