wok rev 6659

psyco: fix opcodes for python 2.7
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 11 17:24:20 2010 +0200 (2010-10-11)
parents 09f07fb46c15
children ce54dbb26a3f
files psyco/receipt
line diff
     1.1 --- a/psyco/receipt	Mon Oct 11 17:07:58 2010 +0200
     1.2 +++ b/psyco/receipt	Mon Oct 11 17:24:20 2010 +0200
     1.3 @@ -15,6 +15,10 @@
     1.4  compile_rules()
     1.5  {
     1.6      cd $src
     1.7 +    # Fix opcodes for python 2.7
     1.8 +    sed -i -e 's/JUMP_IF_FALSE\([: )]\)/JUMP_IF_FALSE_OR_POP\1/' \
     1.9 +	   -e 's/JUMP_IF_TRUE\([: )]\)/JUMP_IF_TRUE_OR_POP\1/' \
    1.10 +		c/Python/pycompiler.c c/mergepoints.c
    1.11      python setup.py install --root=$PWD/_pkg
    1.12  }
    1.13