Comment # 2 on bug 1218143 from Ana Guerrero
Looks like it needs further fixing:

[   13s] + find
/home/abuild/rpmbuild/BUILDROOT/python2-pycairo-1.18.1-6.57.x86_64/usr/lib64/python2.7/site-packages
-iname '*.pyc' -delete
[   13s] + find
/home/abuild/rpmbuild/BUILDROOT/python2-pycairo-1.18.1-6.57.x86_64/usr/lib64/python2.7/site-packages
-iname '*.py' -print0
[   13s] + xargs -0 /usr/bin/python2 -c ' 
[   13s] import sys, py_compile 
[   13s] for f in sys.argv[1:]: 
[   13s]  
fp=f[len("/home/abuild/rpmbuild/BUILDROOT/python2-pycairo-1.18.1-6.57.x86_64"):] 
[   13s]   print("Generating cached byte-code for " + str(fp)) 
[   13s]   for o in [0, 1]: 
[   13s]     py_compile.compile(f, dfile=fp, optimize=o) 
[   13s] '
[   13s] Generating cached byte-code for
/usr/lib64/python2.7/site-packages/cairo/__init__.py
[   13s] Traceback (most recent call last):
[   13s]   File "<string>", line 7, in <module>
[   13s] TypeError: compile() got an unexpected keyword argument 'optimize'
[   13s] error: Bad exit status from /var/tmp/rpm-tmp.JyEZik (%install)
[   13s]


You are receiving this mail because: