[Python-modules-team] Bug#810592: python3-cffi: Does not depend on py3-dev ?

Stefano Rivera stefanor at debian.org
Sun Jan 17 20:05:53 UTC 2016


Hi Goirand (2016.01.10_05:15:52_-0800)
> > Installing python3-dev fixed this. Thus I conclude that there's a
> > missing dependency here. 

There is a Suggests: python3-dev.

This goes back to earlier days in cffi. Using the verifier requires -dev
at build time, but not runtime.

In the new out-of-line modes, runtime use will have the cffi-backend
package installed, so we can strengthen the dependency to Recommends or
Depends.

That said, you need -dev when building ABI-level extensions, but not
API-level ones. So maybe Recommends is the right thing to use...

> If that's true, then the build-depends should be python-dev-all, not
> just python-dev.

Yes, I think for packages using ABI-level extensions should be
build-depending on -dev-all.

> # [ starting a crypto program ]
> /usr/lib/python3/dist-packages/cryptography/hazmat/bindings/__pycache__/_cffi__x7af6e22bxb4fc9075.c:2:20: fatal error: Python.h: No such file or directory
> #include <Python.h>

That shouldn't happen.

Packages using cffi should build extensions like that at build time, not
run time.

Tell me more about this python3-cryptography package you're using?

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



More information about the Python-modules-team mailing list