Package: pypy3 Version: 6.0.0+dfsg-2 Consider the following pypy3 interaction:
| $ pypy3 | Python 3.5.3 (6.0.0+dfsg-2, Jan 31 2019, 18:16:16) | [PyPy 6.0.0 with GCC 8.2.0] on linux | Type "help", "copyright", "credits" or "license" for more information. | >>>> import lzma | Traceback (most recent call last): | File "<stdin>", line 1, in <module> | File "/usr/lib/pypy3/lib-python/3/lzma.py", line 26, in <module> | from _lzma import * | File "/usr/lib/pypy3/lib_pypy/_lzma.py", line 15, in <module> | from _lzma_cffi import ffi, lib as m | ImportError: No module named '_lzma_cffi' | >>>> pypy upstream does have support for lzma, but the relevant cffi module is not built by the Debian package as can be seen in a build log: https://buildd.debian.org/status/fetch.php?pkg=pypy3&arch=amd64&ver=6.0.0%2Bdfsg-2&stamp=1548970515&raw=0 | stderr: | _lzma_cffi.c:496:10: fatal error: lzma.h: No such file or directory | #include <lzma.h> | ^~~~~~~~ | compilation terminated. | Traceback (most recent call last): | File "/<<BUILDDIR>>/pypy3-6.0.0+dfsg/lib-python/3/distutils/unixccompiler.py", line 133, in _compile | extra_postargs) | File "/<<BUILDDIR>>/pypy3-6.0.0+dfsg/lib-python/3/distutils/ccompiler.py", line 909, in spawn | spawn(cmd, dry_run=self.dry_run) | File "/<<BUILDDIR>>/pypy3-6.0.0+dfsg/lib-python/3/distutils/spawn.py", line 36, in spawn | _spawn_posix(cmd, search_path, dry_run=dry_run) | File "/<<BUILDDIR>>/pypy3-6.0.0+dfsg/lib-python/3/distutils/spawn.py", line 159, in _spawn_posix | % (cmd, exit_status)) | distutils.errors.DistutilsExecError: command 'cc' failed with exit status 1 I guess fixing this is a matter of adding liblzma-dev (which ships lzma.h) to Build-Depends. Helmut