[pypy-issue] Issue #2131: package.py builds cffi bindings using invoking CPython instead of packaged PyPy (pypy/pypy)

squeaky issues-reply at bitbucket.org
Tue Sep 1 15:25:18 CEST 2015


New issue 2131: package.py builds cffi bindings using invoking CPython instead of packaged PyPy
https://bitbucket.org/pypy/pypy/issues/2131/packagepy-builds-cffi-bindings-using

squeaky:

package.py tries to build the cffi bindings for the second time when invoked using CPython despite the bindings were arleady generated as part of translation. Previously (2.6.0) it would just work. Maybe package.py shouldn't try to do it at all now, o try to see if there were built and skip, or build them using the PyPy interpreter that is being packaged, not the invoker.

```
* _audioop_build.py
 _audioop_cffi.c:2:20: fatal error: Python.h: No such file or directory
 #include <Python.h>
                    ^
compilation terminated.
Traceback (most recent call last):
  File "_audioop_build.py", line 621, in <module>
    ffi.compile()
  File "/src/pypy/lib_pypy/cffi/api.py", line 583, in compile
    source_extension=source_extension, **kwds)
  File "/src/pypy/lib_pypy/cffi/recompiler.py", line 1239, in recompile
    outputfilename = ffiplatform.compile('.', ext)
  File "/src/pypy/lib_pypy/cffi/ffiplatform.py", line 38, in compile
    outputfilename = _build(tmpdir, ext)
  File "/src/pypy/lib_pypy/cffi/ffiplatform.py", line 65, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
VerificationError: CompileError: command 'cc' failed with exit status 1

* _curses_build.py
 _curses_cffi.c:2:20: fatal error: Python.h: No such file or directory
 #include <Python.h>
                    ^
compilation terminated.
Traceback (most recent call last):
  File "_curses_build.py", line 323, in <module>
    ffi.compile()
  File "/src/pypy/lib_pypy/cffi/api.py", line 583, in compile
    source_extension=source_extension, **kwds)
  File "/src/pypy/lib_pypy/cffi/recompiler.py", line 1239, in recompile
    outputfilename = ffiplatform.compile('.', ext)
  File "/src/pypy/lib_pypy/cffi/ffiplatform.py", line 38, in compile
    outputfilename = _build(tmpdir, ext)
  File "/src/pypy/lib_pypy/cffi/ffiplatform.py", line 65, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
VerificationError: CompileError: command 'cc' failed with exit status 1

* _gdbm_build.py
 _gdbm_cffi.c:2:20: fatal error: Python.h: No such file or directory
 #include <Python.h>
                    ^
compilation terminated.
Traceback (most recent call last):
  File "_gdbm_build.py", line 65, in <module>
    ffi.compile()
  File "/src/pypy/lib_pypy/cffi/api.py", line 583, in compile
    source_extension=source_extension, **kwds)
  File "/src/pypy/lib_pypy/cffi/recompiler.py", line 1239, in recompile
    outputfilename = ffiplatform.compile('.', ext)
  File "/src/pypy/lib_pypy/cffi/ffiplatform.py", line 38, in compile
    outputfilename = _build(tmpdir, ext)
  File "/src/pypy/lib_pypy/cffi/ffiplatform.py", line 65, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
VerificationError: CompileError: command 'cc' failed with exit status 1

* _pwdgrp_build.py
 _pwdgrp_cffi.c:2:20: fatal error: Python.h: No such file or directory
 #include <Python.h>
                    ^
compilation terminated.
Traceback (most recent call last):
  File "_pwdgrp_build.py", line 53, in <module>
    ffi.compile()
  File "/src/pypy/lib_pypy/cffi/api.py", line 583, in compile
    source_extension=source_extension, **kwds)
  File "/src/pypy/lib_pypy/cffi/recompiler.py", line 1239, in recompile
    outputfilename = ffiplatform.compile('.', ext)
  File "/src/pypy/lib_pypy/cffi/ffiplatform.py", line 38, in compile
    outputfilename = _build(tmpdir, ext)
  File "/src/pypy/lib_pypy/cffi/ffiplatform.py", line 65, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
VerificationError: CompileError: command 'cc' failed with exit status 1

* _sqlite3_build.py
 _sqlite3_cffi.c:2:20: fatal error: Python.h: No such file or directory
 #include <Python.h>
                    ^
compilation terminated.
Traceback (most recent call last):
  File "_sqlite3_build.py", line 265, in <module>
    _ffi.compile()
  File "/src/pypy/lib_pypy/cffi/api.py", line 583, in compile
    source_extension=source_extension, **kwds)
  File "/src/pypy/lib_pypy/cffi/recompiler.py", line 1239, in recompile
    outputfilename = ffiplatform.compile('.', ext)
  File "/src/pypy/lib_pypy/cffi/ffiplatform.py", line 38, in compile
    outputfilename = _build(tmpdir, ext)
  File "/src/pypy/lib_pypy/cffi/ffiplatform.py", line 65, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
VerificationError: CompileError: command 'cc' failed with exit status 1
```





More information about the pypy-issue mailing list